Обсуждение: pgsql: Cleanup slots during drop database

Поиск
Список
Период
Сортировка

pgsql: Cleanup slots during drop database

От
Simon Riggs
Дата:
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(-)