Add support for temporary replication slots
Peter Eisentraut <peter_e@gmx.net>
Add support for temporary replication slots This allows creating temporary replication slots that are removed automatically at the end of the session or on error. From: Petr Jelinek <petr.jelinek@2ndquadrant.com>
Files
| Path | Change | +/− |
|---|---|---|
| contrib/test_decoding/expected/ddl.out | modified | +2 −2 |
| contrib/test_decoding/expected/slot.out | added | +58 −0 |
| contrib/test_decoding/Makefile | modified | +1 −1 |
| contrib/test_decoding/sql/slot.sql | added | +20 −0 |
| doc/src/sgml/func.sgml | modified | +12 −4 |
| doc/src/sgml/protocol.sgml | modified | +12 −1 |
| src/backend/catalog/system_views.sql | modified | +11 −0 |
| src/backend/replication/repl_gram.y | modified | +15 −7 |
| src/backend/replication/repl_scanner.l | modified | +1 −0 |
| src/backend/replication/slot.c | modified | +56 −13 |
| src/backend/replication/slotfuncs.c | modified | +17 −7 |
| src/backend/replication/walsender.c | modified | +17 −11 |
| src/backend/storage/lmgr/proc.c | modified | +3 −0 |
| src/backend/tcop/postgres.c | modified | +3 −0 |
| src/include/catalog/pg_proc.h | modified | +3 −3 |
| src/include/nodes/replnodes.h | modified | +1 −0 |
| src/include/replication/slot.h | modified | +3 −1 |
| src/test/regress/expected/rules.out | modified | +2 −1 |