PostgreSQL
9.4
| Документация по PostgreSQL 9.4.1 | |||
|---|---|---|---|
| Пред. | Уровень выше | Глава 48. Системные каталоги | След. |
48.39. pg_replication_slots
Представление pg_replication_slots содержит список всех слотов репликации, существующих в данный момент в кластере баз данных, а также их текущее состояние.
За дополнительной информацией о слотах репликации обратитесь к Подразделу 25.2.6 и Главе 46.
Таблица 48-39. Колонки pg_replication_slots
| Имя | Тип | Ссылки | Описание |
|---|---|---|---|
| slot_name | name | Уникальный в рамках кластера идентификатор для слота репликации | |
| plugin | name | Базовое имя разделяемого объекта, содержащего модуль вывода, который используется этим логическим слотом, либо NULL для физических слотов. | |
| slot_type | text | Тип слота — physical (физический) или logical (логический) | |
| datoid | oid | pg_database.oid | OID базы данных, с которой связан этот слот, либо NULL. С базой данных могут быть связаны только логические слоты. |
| database | text | pg_database.datname | Имя базы данных, с которой связан этот слот, либо NULL. С базой данных могут быть связаны только логические слоты. |
| active | boolean | True, если слот активно используется в данный момент | |
| xmin | xid | Старейшая транзакция, которая должна сохраняться в базе данных для этого слота. VACUUM не сможет удалять кортежи, удалённые более поздними транзакциями. | |
| catalog_xmin | xid | Старейшая транзакция, затрагивающая системные каталоги, которая должна сохраняться в базе данных для этого слота. VACUUM не сможет удалять кортежи, удалённые более поздними транзакциями. | |
| restart_lsn | pg_lsn | Адрес (LSN) старейшей записи в WAL, которая по-прежнему может быть нужна пользователям этого слота и, таким образом, не будет автоматически удаляться при контрольных точках. |
| Пред. | Начало | След. |
| pg_rewrite | Уровень выше | pg_seclabel |
| PostgreSQL 9.4.1 Documentation | |||
|---|---|---|---|
| Prev | Up | Chapter 48. System Catalogs | Next |
48.39. pg_replication_slots
The pg_replication_slots view provides a listing of all replication slots that currently exist on the database cluster, along with their current state.
For more on replication slots, see Section 25.2.6 and Chapter 46.
Table 48-39. pg_replication_slots Columns
| Name | Type | References | Description |
|---|---|---|---|
| slot_name | name | A unique, cluster-wide identifier for the replication slot | |
| plugin | name | The base name of the shared object containing the output plugin this logical slot is using, or null for physical slots. | |
| slot_type | text | The slot type - physical or logical | |
| datoid | oid | pg_database.oid | The OID of the database this slot is associated with, or null. Only logical slots have an associated database. |
| database | text | pg_database.datname | The name of the database this slot is associated with, or null. Only logical slots have an associated database. |
| active | boolean | True if this slot is currently actively being used | |
| xmin | xid | The oldest transaction that this slot needs the database to retain. VACUUM cannot remove tuples deleted by any later transaction. | |
| catalog_xmin | xid | The oldest transaction affecting the system catalogs that this slot needs the database to retain. VACUUM cannot remove catalog tuples deleted by any later transaction. | |
| restart_lsn | pg_lsn | The address (LSN) of oldest WAL which still might be required by the consumer of this slot and thus won't be automatically removed during checkpoints. |