forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit31c389d

Amit Kapila
Optimize fileset usage in apply worker.
Use one fileset for the entire worker lifetime instead of usingseparate filesets for each streaming transaction. Now, thechanges/subxacts files for every streaming transaction will becreated under the same fileset and the files will be deletedafter the transaction is completed.This patch extends the BufFileOpenFileSet and BufFileDeleteFileSetAPIs to allow users to specify whether to give an error on missingfiles.Author: Dilip Kumar, based on suggestion by Thomas MunroReviewed-by: Hou Zhijie, Masahiko Sawada, Amit KapilaDiscussion:https://postgr.es/m/E1mCC6U-0004Ik-Fs@gemulon.postgresql.org1 parent163074e commit31c389d
File tree
7 files changed
+86
-219
lines changed- src
- backend
- replication/logical
- storage/file
- utils/sort
- include
- replication
- storage
7 files changed
+86
-219
lines changedLines changed: 4 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
379 | 379 |
| |
380 | 380 |
| |
381 | 381 |
| |
| 382 | + | |
382 | 383 |
| |
383 | 384 |
| |
384 | 385 |
| |
| |||
648 | 649 |
| |
649 | 650 |
| |
650 | 651 |
| |
651 |
| - | |
652 |
| - | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
653 | 655 |
| |
654 | 656 |
| |
655 | 657 |
| |
|
0 commit comments
Comments
(0)