Cleanup slots during drop database
Simon Riggs <simon@2ndQuadrant.com>
Cleanup slots during drop database Automatically drop all logical replication slots associated with a database when the database is dropped. Previously we threw an ERROR if a slot existed. Now we throw ERROR only if a slot is active in the database being dropped. Craig Ringer
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/func.sgml | modified | +2 −1 |
| doc/src/sgml/protocol.sgml | modified | +2 −0 |
| src/backend/commands/dbcommands.c | modified | +23 −9 |
| src/backend/replication/slot.c | modified | +88 −0 |
| src/include/replication/slot.h | modified | +1 −0 |
| src/test/recovery/t/006_logical_decoding.pl | modified | +38 −2 |
| src/test/recovery/t/010_logical_decoding_timelines.pl | modified | +28 −2 |