跳转至

pg_exttable

pg_exttable

pg_exttable系统目录表用来追踪由CREATE EXTERNAL TABLE命令创建的外部表和Web表。

类型 参考 描述
reloid oid pg_class.oid 该外部表的OID。
urilocation text[] 外部表文件的URI地址。
execlocation text[] 为外部表定义的ON Executor位置。
fmttype char 外部表文件的格式:t是文本,c是csv。
fmtopts text 外部表文件的格式化选项,如字段定界符、空字符串、转义字符等。
options text[] 为外部表定义的选项。
command text 访问外部表所执行的OS命令。
rejectlimit integer 每个Executor拒绝错误行的限制,之后装载将失败。
rejectlimittype char 拒绝限制的阀值类型:r表示行数。
logerrors char 1记录错误,0不记录。
encoding integer 客户端编码。
writable boolean 0表示可读外部表, 1表示可写外部表。

Table 1. pg_catalog.pg_exttable