February 2020
Intermediate to advanced
734 pages
38h 13m
English
PostgreSQL enforces foreign table statements everywhere. For instance, let's try to drop this table using a regular DROP TABLE statement:
DROP TABLE pgbench_accounts;
The server would quickly respond with the following output:

Similarly, if we checked the relkind column in the pg_class catalog table, its type would be listed as f for foreign table instead of r for relation. PostgreSQL saves several hints and other breadcrumbs so that there is never any question as to the nature of foreign tables. Doing so prevents bugs and can even produce better performance, as remote access is taken into consideration before it selects ...
Read now
Unlock full access