Refactor sharedfileset.c to separate out fileset implementation.
authorAmit Kapila <akapila@postgresql.org>
Mon, 30 Aug 2021 03:15:35 +0000 (08:45 +0530)
committerAmit Kapila <akapila@postgresql.org>
Mon, 30 Aug 2021 03:18:15 +0000 (08:48 +0530)
commitdcac5e7ac157964f71f15d81c7429130c69c3f9b
tree282810d70662894fdf76aa6869e2f6eeff9ead20
parentd3fa87657860a50643118c682cdbf53f508a3fab
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
14 files changed:
src/backend/replication/logical/launcher.c
src/backend/replication/logical/worker.c
src/backend/storage/file/Makefile
src/backend/storage/file/buffile.c
src/backend/storage/file/fd.c
src/backend/storage/file/fileset.c [new file with mode: 0644]
src/backend/storage/file/sharedfileset.c
src/backend/utils/sort/logtape.c
src/backend/utils/sort/sharedtuplestore.c
src/include/replication/worker_internal.h
src/include/storage/buffile.h
src/include/storage/fileset.h [new file with mode: 0644]
src/include/storage/sharedfileset.h
src/tools/pgindent/typedefs.list