56.41. pg_publication #

Каталог pg_publication содержит все публикации, созданные в базе данных. Подробнее о публикациях можно узнать в Разделе 30.1.

Таблица 56.41. Столбцы pg_publication

Тип столбца

Описание

oid oid

Идентификатор строки

pubname name

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

pubowner oid (ссылается на pg_authid.oid)

Владелец публикации

puballtables bool

Если true, эта публикация автоматически включает все таблицы в базе данных, в том числе и те, что будут созданы в будущем.

pubinsert bool

Если true, операции INSERT реплицируются для таблиц в публикации.

pubupdate bool

Если true, операции UPDATE реплицируются для таблиц в публикации.

pubdelete bool

Если true, операции DELETE реплицируются для таблиц в публикации.

pubtruncate bool

Если true, операции TRUNCATE реплицируются для таблиц в публикации.

pubviaroot bool

Если true, операции с конечной секцией реплицируются не через эту секцию, а через включённую в публикацию родительскую секцию самого верхнего уровня, с её именем и схемой.

pubgencols char

Управляет репликацией генерируемых столбцов, когда нет списка столбцов публикации: n = генерируемые столбцы таблиц, связанных с публикацией, не должны реплицироваться, s = хранимые генерируемые столбцы таблиц, связанных с публикацией, должны реплицироваться.


56.41. pg_publication #

The catalog pg_publication contains all publications created in the database. For more on publications see Section 30.1.

Table 56.41. pg_publication Columns

Column Type

Description

oid oid

Row identifier

pubname name

Name of the publication

pubowner oid (references pg_authid.oid)

Owner of the publication

puballtables bool

If true, this publication automatically includes all tables in the database, including any that will be created in the future.

pubinsert bool

If true, INSERT operations are replicated for tables in the publication.

pubupdate bool

If true, UPDATE operations are replicated for tables in the publication.

pubdelete bool

If true, DELETE operations are replicated for tables in the publication.

pubtruncate bool

If true, TRUNCATE operations are replicated for tables in the publication.

pubviaroot bool

If true, operations on a leaf partition are replicated using the identity and schema of its topmost partitioned ancestor mentioned in the publication instead of its own.

pubgencols char

Controls how to handle generated column replication when there is no publication column list: n = generated columns in the tables associated with the publication should not be replicated, s = stored generated columns in the tables associated with the publication should be replicated.


FAQ