Create a physical slot to retain WAL for a replica.
Section: Replication and WAL
Create physical replication slot
sql
sql
SELECT * FROM pg_create_physical_replication_slot('standby_1');Explanation
See summary for usage details.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Replication and WAL
Drop replication slot
Remove a replication slot when it is no longer needed.
Create subscription
Subscribe to logical replication changes from another server.