pgsql: Cleanup slots during drop database

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема pgsql: Cleanup slots during drop database
Дата
Msg-id E1csrm8-0008Nd-Tb@gemulon.postgresql.org
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: Fix Perl code which had broken the Windows build
Следующее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: dblink: Fix error reporting