concept

Replication slots

PostgreSQL slots track consumer progress and can keep required WAL available. Lagging consumers may increase disk pressure; retained LSN span is not exact allocated bytes.

Formal Syntax & Structure

sql syntaxsql
SELECT slot_name, active, restart_lsn FROM pg_replication_slots;

Working Example

Example Snippetsql
SELECT slot_name, active, restart_lsn FROM pg_replication_slots;
SQL Reference