| From: | Simon Riggs <simon(at)2ndQuadrant(dot)com> |
|---|---|
| To: | pgsql-committers(at)postgresql(dot)org |
| Subject: | pgsql: Cleanup slots during drop database |
| Date: | 2017-03-28 14:07:08 |
| Message-ID: | E1csrm8-0008Nd-Tb@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Peter Eisentraut | 2017-03-28 15:16:22 | pgsql: dblink: Fix error reporting |
| Previous Message | Peter Eisentraut | 2017-03-28 13:03:26 | Re: [COMMITTERS] pgsql: Clean up Perl code according to perlcritic |