From a924c327e2793d2025b19e18de7917110dc8afd8 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Thu, 8 Dec 2016 12:00:00 -0500 Subject: Add support for temporary replication slots This allows creating temporary replication slots that are removed automatically at the end of the session or on error. From: Petr Jelinek --- src/backend/storage/lmgr/proc.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/backend/storage/lmgr/proc.c') diff --git a/src/backend/storage/lmgr/proc.c b/src/backend/storage/lmgr/proc.c index 83e9ca15d18..276261bd7b3 100644 --- a/src/backend/storage/lmgr/proc.c +++ b/src/backend/storage/lmgr/proc.c @@ -810,6 +810,9 @@ ProcKill(int code, Datum arg) if (MyReplicationSlot != NULL) ReplicationSlotRelease(); + /* Also cleanup all the temporary slots. */ + ReplicationSlotCleanup(); + /* * Detach from any lock group of which we are a member. If the leader * exist before all other group members, it's PGPROC will remain allocated -- cgit v1.2.3