pgsql: Cleanup slots during drop database - Mailing list pgsql-committers

From Simon Riggs
Subject pgsql: Cleanup slots during drop database
Date
Msg-id E1csrm8-0008Nd-Tb@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/ff539da31691f2cd2694360250571c5c5fb7415e

Modified Files
--------------
doc/src/sgml/func.sgml                             |  3 +-
doc/src/sgml/protocol.sgml                         |  2 +
src/backend/commands/dbcommands.c                  | 32 +++++---
src/backend/replication/slot.c                     | 88 ++++++++++++++++++++++
src/include/replication/slot.h                     |  1 +
src/test/recovery/t/006_logical_decoding.pl        | 40 +++++++++-
.../recovery/t/010_logical_decoding_timelines.pl   | 30 +++++++-
7 files changed, 182 insertions(+), 14 deletions(-)


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pgsql: Fix Perl code which had broken the Windows build
Next
From: Peter Eisentraut
Date:
Subject: pgsql: dblink: Fix error reporting