]> granicus.if.org Git - postgresql/commit
Cleanup slots during drop database
authorSimon Riggs <simon@2ndQuadrant.com>
Tue, 28 Mar 2017 14:05:21 +0000 (10:05 -0400)
committerSimon Riggs <simon@2ndQuadrant.com>
Tue, 28 Mar 2017 14:05:21 +0000 (10:05 -0400)
commitff539da31691f2cd2694360250571c5c5fb7415e
tree494ffccc465ca33af0efd5dc764a169c66fb4bc1
parent4d33a7f2e714848ca7b5b7ef8e244eead078ca13
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
doc/src/sgml/func.sgml
doc/src/sgml/protocol.sgml
src/backend/commands/dbcommands.c
src/backend/replication/slot.c
src/include/replication/slot.h
src/test/recovery/t/006_logical_decoding.pl
src/test/recovery/t/010_logical_decoding_timelines.pl