pg_slotcontrol
Legacy SQL control of physical replication slot retention positions
pg_slotsync · Legacy SQL control of physical replication slot retention positions
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 102102 | pg_slotcontrol | pg_slotsync | 1.0 | ADMIN | PostgreSQL | C |
Usage
Sources:
- pg_slotcontrol/pg_slotcontrol.control
- pg_slotcontrol/README.md
- pg_slotcontrol/pg_slotcontrol–1.0.sql
- pg_slotcontrol/pg_slotcontrol.c
- LICENSE
pg_slotcontrol exposes pg_slotmove(text, pg_lsn) to move a physical replication slot retention position forward. This is a 2017 source snapshot; current PostgreSQL compatibility is not established.
Core Workflow
Operational Boundaries
Only move a slot after ensuring required WAL exists elsewhere. The C implementation rejects logical slots, caps the target at the current WAL write position and never moves backwards. The boolean result indicates whether the position changed. Installation requires a superuser; PUBLIC execution is revoked, so delegate the function deliberately. No preload is specified. The separate pg_slotsync program is not installed by creating this extension.