git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 163074e) | patch
Optimize fileset usage in apply worker.
Thu, 2 Sep 2021 02:43:46 +0000 (08:13 +0530)
Thu, 2 Sep 2021 02:43:46 +0000 (08:13 +0530)
commit 31c389d8de915b705ee06c7a6e9246e20f36b9dc
Optimize fileset usage in apply worker.

Use one fileset for the entire worker lifetime instead of using
separate filesets for each streaming transaction. Now, the
changes/subxacts files for every streaming transaction will be
created under the same fileset and the files will be deleted
after the transaction is completed.

This patch extends the BufFileOpenFileSet and BufFileDeleteFileSet
APIs to allow users to specify whether to give an error on missing
files.

Author: Dilip Kumar, based on suggestion by Thomas Munro
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 diff | blob | blame | history
src/backend/replication/logical/worker.c diff | blob | blame | history
src/backend/storage/file/buffile.c diff | blob | blame | history
src/backend/utils/sort/logtape.c diff | blob | blame | history
src/backend/utils/sort/sharedtuplestore.c diff | blob | blame | history
src/include/replication/worker_internal.h diff | blob | blame | history
src/include/storage/buffile.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /