pg_exttable

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

Table 1. pg_catalog.pg_exttable

columntypereferencesdescription
reloidoidpg_class.oidThe OID of this external table.
locationtext[] The URI location(s) of the external table files.
fmttypechar Format of the external table files: t for text, or c for csv.
fmtoptstext Formatting options of the external table files, such as the field delimiter, null string, escape character, etc.
commandtext The OS command to execute when the external table is accessed.
rejectlimitinteger The per segment reject limit for rows with errors, after which the load will fail.
rejectlimittypechar Type of reject limit threshold: r for number of rows.
fmterrtbloidpg_class.oidThe object id of the error table where format errors will be logged.
encodingtext The client encoding.
writableboolean 0 for readable external tables, 1 for writable external tables.