53.17. pg_publication_tables

Представление pg_publication_tables содержит информацию о сопоставлении публикаций с информацией о связанных с ними таблицах. В отличие от нижележащего каталога pg_publication_rel, в это представление добавляются публикации вида FOR ALL TABLES и FOR TABLES IN SCHEMA, и для такой публикации в нём будет присутствовать строка для каждой входящей в неё таблицы.

Таблица 53.17. Столбцы pg_publication_tables

Тип столбца

Описание

pubname name (ссылается на pg_publication.pubname)

Имя публикации

schemaname name (ссылается на pg_namespace.nspname)

Имя схемы, содержащей таблицу

tablename name (ссылается на pg_class.relname)

Имя таблицы

attnames name[] (ссылается на pg_attribute.attname)

Имена столбцов таблицы, включённых в публикацию. Если список столбцов таблицы не указан в публикации, перечисляются все её столбцы.

rowfilter text

Выражение для условия, ограничивающего публикацию таблицы


53.17. pg_publication_tables

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 53.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