Postgresql 中文操作指南
54.17. pg_publication_tables #
视图 pg_publication_tables 提供有关发布与它们包含的表的信息之间的映射。与基础目录 pg_publication_rel 不同,此视图扩展了定义为 FOR ALL TABLES 和 FOR TABLES IN SCHEMA 的发布,因此对于此类发布,将为每个符合条件的表提供一行。
The view pg_publication_tables provides information about the mapping between publications and information of tables they contain. Unlike the underlying catalog pg_publication_rel, this view expands publications defined as FOR ALL TABLES and FOR TABLES IN SCHEMA, so for such publications there will be a row for each eligible table.
Table 54.17. pg_publication_tables Columns
Table 54.17. pg_publication_tables Columns
Column Type Description |
pubname name (references pg_publication.pubname) Name of publication |
schemaname name (references pg_namespace.nspname) Name of schema containing table |
tablename name (references pg_class.relname) Name of table |
attnames name[] (references pg_attribute.attname) Names of table columns included in the publication. This contains all the columns of the table when the user didn’t specify the column list for the table. |
rowfilter text Expression for the table’s publication qualifying condition |