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 27.2.6 and Chapter 49.
A unique, cluster-wide identifier for the replication slot
The base name of the shared object containing the output plugin this logical slot is using, or null for physical slots.
The slot type:
The OID of the database this slot is associated with, or null. Only logical slots have an associated database.
The name of the database this slot is associated with, or null. Only logical slots have an associated database.
True if this is a temporary replication slot. Temporary slots are not saved to disk and are automatically dropped on error or when the session has finished.
True if this slot is currently actively being used
The process ID of the session using this slot if the slot is currently actively being used.
The oldest transaction that this slot needs the database to retain.
The oldest transaction affecting the system catalogs that this slot needs the database to retain.
The address (
The address (
Availability of WAL files claimed by this slot. Possible values are:
The last two states are seen only when max_slot_wal_keep_size is non-negative. If
The number of bytes that can be written to WAL such that this slot is not in danger of getting in state "lost". It is NULL for lost slots, as well as if
True if the slot is enabled for decoding prepared transactions. Always false for physical slots.