Skip to content

pg_exttable

The pg_exttable system catalog table is used to track external tables and web tables created by the CREATE EXTERNAL TABLE command.

columntypereferencesdescription
reloidoidpg_class.oidThe OID of this external table.
urilocationtext[]The URI location(s) of the external table files.
execlocationtext[]The ON segment locations defined for the external table.
fmttypecharFormat of the external table files: t for text, or c for csv.
fmtoptstextFormatting options of the external table files, such as the field delimiter, null string, escape character, etc.
optionstext[]The options defined for the external table.
commandtextThe OS command to run when the external table is accessed.
rejectlimitintegerThe per segment reject limit for rows with errors, after which the load will fail.
rejectlimittypecharType of reject limit threshold: r for number of rows.
logerrorsbool1 to log errors, 0 to not.
encodingtextThe client encoding.
writableboolean0 for readable external tables, 1 for writable external tables.

Parent topic: System Catalogs Definitions