Refactor sharedfileset.c to separate out fileset implementation.
Amit Kapila <akapila@postgresql.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/replication/logical/launcher.c | modified | +3 −0 |
| src/backend/replication/logical/worker.c | modified | +53 −29 |
| src/backend/storage/file/buffile.c | modified | +42 −42 |
| src/backend/storage/file/fd.c | modified | +1 −1 |
| src/backend/storage/file/fileset.c | added | +205 −0 |
| src/backend/storage/file/Makefile | modified | +1 −0 |
| src/backend/storage/file/sharedfileset.c | modified | +5 −239 |
| src/backend/utils/sort/logtape.c | modified | +4 −4 |
| src/backend/utils/sort/sharedtuplestore.c | modified | +3 −2 |
| src/include/replication/worker_internal.h | modified | +1 −0 |
| src/include/storage/buffile.h | modified | +7 −7 |
| src/include/storage/fileset.h | added | +40 −0 |
| src/include/storage/sharedfileset.h | modified | +2 −12 |
| src/tools/pgindent/typedefs.list | modified | +1 −0 |
Discussion
- pgsql: pgstat: Bring up pgstat in BaseInit() to fix uninitialized use o 79 messages · 2021-08-07 → 2021-11-29