From dcac5e7ac157964f71f15d81c7429130c69c3f9b Mon Sep 17 00:00:00 2001 From: Amit Kapila Date: Mon, 30 Aug 2021 08:45:35 +0530 Subject: Refactor sharedfileset.c to separate out fileset implementation. Move fileset related implementation out of sharedfileset.c to allow its usage by backends that don't want to share filesets among different processes. After this split, fileset infrastructure is used by both sharedfileset.c and worker.c for the named temporary files that survive across transactions. Author: Dilip Kumar, based on suggestion by Andres Freund Reviewed-by: Hou Zhijie, Masahiko Sawada, Amit Kapila Discussion: https://postgr.es/m/E1mCC6U-0004Ik-Fs@gemulon.postgresql.org --- src/backend/replication/logical/launcher.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/backend/replication/logical/launcher.c') diff --git a/src/backend/replication/logical/launcher.c b/src/backend/replication/logical/launcher.c index e3b11daa897..8b1772db69e 100644 --- a/src/backend/replication/logical/launcher.c +++ b/src/backend/replication/logical/launcher.c @@ -648,6 +648,9 @@ logicalrep_worker_onexit(int code, Datum arg) logicalrep_worker_detach(); + /* Cleanup filesets used for streaming transactions. */ + logicalrep_worker_cleanupfileset(); + ApplyLauncherWakeup(); } -- cgit v1.2.3