Updated on 2023-10-23 GMT+08:00

PG_FOREIGN_TABLE

PG_FOREIGN_TABLE records auxiliary information about foreign tables.

Table 1 PG_FOREIGN_TABLE columns

Name

Type

Description

ftrelid

oid

ID of a foreign table

ftserver

oid

Server where the foreign table is located

ftwriteonly

boolean

Whether the foreign table is writable. Values are as follows:

  • t (true): yes
  • f (false): no

ftoptions

text[]

Options of a foreign table. For details, see the syntax description of CREATE FOREIGN TABLE.