pg_foreign_data_wrapper
是一个存储外部数据包装器定义的系统目录表
pg_foreign_data_wrapper
在PostgreSQL 8.4 中添加。
psql 命令
\dew
列出外部数据包装器。
按 PostgreSQL 版本定义
pg_foreign_data_wrapper (PostgreSQL 17)
Table "pg_catalog.pg_foreign_data_wrapper" Column | Type | Collation | Nullable | Default --------------+-----------+-----------+----------+--------- oid | oid | | not null | fdwname | name | | not null | fdwowner | oid | | not null | fdwhandler | oid | | not null | fdwvalidator | oid | | not null | fdwacl | aclitem[] | | | fdwoptions | text[] | C | | Indexes: "pg_foreign_data_wrapper_oid_index" PRIMARY KEY, btree (oid) "pg_foreign_data_wrapper_name_index" UNIQUE CONSTRAINT, btree (fdwname)
pg_foreign_data_wrapper (PostgreSQL 16)
Table "pg_catalog.pg_foreign_data_wrapper" Column | Type | Collation | Nullable | Default --------------+-----------+-----------+----------+--------- oid | oid | | not null | fdwname | name | | not null | fdwowner | oid | | not null | fdwhandler | oid | | not null | fdwvalidator | oid | | not null | fdwacl | aclitem[] | | | fdwoptions | text[] | C | | Indexes: "pg_foreign_data_wrapper_oid_index" PRIMARY KEY, btree (oid) "pg_foreign_data_wrapper_name_index" UNIQUE CONSTRAINT, btree (fdwname)
pg_foreign_data_wrapper (PostgreSQL 15)
Table "pg_catalog.pg_foreign_data_wrapper" Column | Type | Collation | Nullable | Default --------------+-----------+-----------+----------+--------- oid | oid | | not null | fdwname | name | | not null | fdwowner | oid | | not null | fdwhandler | oid | | not null | fdwvalidator | oid | | not null | fdwacl | aclitem[] | | | fdwoptions | text[] | C | | Indexes: "pg_foreign_data_wrapper_oid_index" PRIMARY KEY, btree (oid) "pg_foreign_data_wrapper_name_index" UNIQUE CONSTRAINT, btree (fdwname)
pg_foreign_data_wrapper (PostgreSQL 14)
Table "pg_catalog.pg_foreign_data_wrapper" Column | Type | Collation | Nullable | Default --------------+-----------+-----------+----------+--------- oid | oid | | not null | fdwname | name | | not null | fdwowner | oid | | not null | fdwhandler | oid | | not null | fdwvalidator | oid | | not null | fdwacl | aclitem[] | | | fdwoptions | text[] | C | | Indexes: "pg_foreign_data_wrapper_oid_index" PRIMARY KEY, btree (oid) "pg_foreign_data_wrapper_name_index" UNIQUE CONSTRAINT, btree (fdwname)
pg_foreign_data_wrapper (PostgreSQL 13)
Table "pg_catalog.pg_foreign_data_wrapper" Column | Type | Collation | Nullable | Default --------------+-----------+-----------+----------+--------- oid | oid | | not null | fdwname | name | | not null | fdwowner | oid | | not null | fdwhandler | oid | | not null | fdwvalidator | oid | | not null | fdwacl | aclitem[] | | | fdwoptions | text[] | C | | Indexes: "pg_foreign_data_wrapper_name_index" UNIQUE, btree (fdwname) "pg_foreign_data_wrapper_oid_index" UNIQUE, btree (oid)
pg_foreign_data_wrapper (PostgreSQL 12)
Table "pg_catalog.pg_foreign_data_wrapper" Column | Type | Collation | Nullable | Default --------------+-----------+-----------+----------+--------- oid | oid | | not null | fdwname | name | | not null | fdwowner | oid | | not null | fdwhandler | oid | | not null | fdwvalidator | oid | | not null | fdwacl | aclitem[] | | | fdwoptions | text[] | C | | Indexes: "pg_foreign_data_wrapper_name_index" UNIQUE, btree (fdwname) "pg_foreign_data_wrapper_oid_index" UNIQUE, btree (oid)
pg_foreign_data_wrapper (PostgreSQL 11)
Table "pg_catalog.pg_foreign_data_wrapper" Column | Type | Collation | Nullable | Default --------------+-----------+-----------+----------+--------- fdwname | name | | not null | fdwowner | oid | | not null | fdwhandler | oid | | not null | fdwvalidator | oid | | not null | fdwacl | aclitem[] | | | fdwoptions | text[] | | | Indexes: "pg_foreign_data_wrapper_name_index" UNIQUE, btree (fdwname) "pg_foreign_data_wrapper_oid_index" UNIQUE, btree (oid)
pg_foreign_data_wrapper (PostgreSQL 10)
Table "pg_catalog.pg_foreign_data_wrapper" Column | Type | Collation | Nullable | Default --------------+-----------+-----------+----------+--------- fdwname | name | | not null | fdwowner | oid | | not null | fdwhandler | oid | | not null | fdwvalidator | oid | | not null | fdwacl | aclitem[] | | | fdwoptions | text[] | | | Indexes: "pg_foreign_data_wrapper_name_index" UNIQUE, btree (fdwname) "pg_foreign_data_wrapper_oid_index" UNIQUE, btree (oid)
pg_foreign_data_wrapper (PostgreSQL 9.6)
Table "pg_catalog.pg_foreign_data_wrapper" Column | Type | Modifiers --------------+-----------+----------- fdwname | name | not null fdwowner | oid | not null fdwhandler | oid | not null fdwvalidator | oid | not null fdwacl | aclitem[] | fdwoptions | text[] | Indexes: "pg_foreign_data_wrapper_name_index" UNIQUE, btree (fdwname) "pg_foreign_data_wrapper_oid_index" UNIQUE, btree (oid)
pg_foreign_data_wrapper (PostgreSQL 9.5)
Table "pg_catalog.pg_foreign_data_wrapper" Column | Type | Modifiers --------------+-----------+----------- fdwname | name | not null fdwowner | oid | not null fdwhandler | oid | not null fdwvalidator | oid | not null fdwacl | aclitem[] | fdwoptions | text[] | Indexes: "pg_foreign_data_wrapper_name_index" UNIQUE, btree (fdwname) "pg_foreign_data_wrapper_oid_index" UNIQUE, btree (oid)
pg_foreign_data_wrapper (PostgreSQL 9.4)
Table "pg_catalog.pg_foreign_data_wrapper" Column | Type | Modifiers --------------+-----------+----------- fdwname | name | not null fdwowner | oid | not null fdwhandler | oid | not null fdwvalidator | oid | not null fdwacl | aclitem[] | fdwoptions | text[] | Indexes: "pg_foreign_data_wrapper_name_index" UNIQUE, btree (fdwname) "pg_foreign_data_wrapper_oid_index" UNIQUE, btree (oid)
pg_foreign_data_wrapper (PostgreSQL 9.3)
Table "pg_catalog.pg_foreign_data_wrapper" Column | Type | Modifiers --------------+-----------+----------- fdwname | name | not null fdwowner | oid | not null fdwhandler | oid | not null fdwvalidator | oid | not null fdwacl | aclitem[] | fdwoptions | text[] | Indexes: "pg_foreign_data_wrapper_name_index" UNIQUE, btree (fdwname) "pg_foreign_data_wrapper_oid_index" UNIQUE, btree (oid)
pg_foreign_data_wrapper (PostgreSQL 9.2)
Table "pg_catalog.pg_foreign_data_wrapper" Column | Type | Modifiers --------------+-----------+----------- fdwname | name | not null fdwowner | oid | not null fdwhandler | oid | not null fdwvalidator | oid | not null fdwacl | aclitem[] | fdwoptions | text[] | Indexes: "pg_foreign_data_wrapper_name_index" UNIQUE, btree (fdwname) "pg_foreign_data_wrapper_oid_index" UNIQUE, btree (oid)
pg_foreign_data_wrapper (PostgreSQL 9.1)
Table "pg_catalog.pg_foreign_data_wrapper" Column | Type | Modifiers --------------+-----------+----------- fdwname | name | not null fdwowner | oid | not null fdwhandler | oid | not null fdwvalidator | oid | not null fdwacl | aclitem[] | fdwoptions | text[] | Indexes: "pg_foreign_data_wrapper_name_index" UNIQUE, btree (fdwname) "pg_foreign_data_wrapper_oid_index" UNIQUE, btree (oid)
pg_foreign_data_wrapper (PostgreSQL 9.0)
Table "pg_catalog.pg_foreign_data_wrapper" Column | Type | Modifiers --------------+-----------+----------- fdwname | name | not null fdwowner | oid | not null fdwvalidator | oid | not null fdwacl | aclitem[] | fdwoptions | text[] | Indexes: "pg_foreign_data_wrapper_name_index" UNIQUE, btree (fdwname) "pg_foreign_data_wrapper_oid_index" UNIQUE, btree (oid)
pg_foreign_data_wrapper (PostgreSQL 8.4)
Table "pg_catalog.pg_foreign_data_wrapper" Column | Type | Modifiers --------------+-----------+----------- fdwname | name | not null fdwowner | oid | not null fdwvalidator | oid | not null fdwacl | aclitem[] | fdwoptions | text[] | Indexes: "pg_foreign_data_wrapper_name_index" UNIQUE, btree (fdwname) "pg_foreign_data_wrapper_oid_index" UNIQUE, btree (oid)
更改历史记录
- PostgreSQL 9.1
- 添加了列
fdwhandler
(提交 327e0250)
- 添加了列
- PostgreSQL 8.4
- 添加 (提交 cae565e5)
参考
- PostgreSQL 文档: pg_foreign_data_wrapper