=== Applying patches on top of PostgreSQL commit ID 7bb8cc295b538df21d854e55e12a32dbbd8609b1 === /etc/rc.d/jail: WARNING: Per-jail configuration via jail_* variables is obsolete. Please consider migrating to /etc/jail.conf. Tue Nov 24 03:04:33 UTC 2026 On branch cf/7639 nothing to commit, working tree clean === using 'git am' to apply patch ./v2-0001-Avoid-DELAY_CHKPT_START-in-smgr_bulk_finish.patch === Applying: Avoid DELAY_CHKPT_START in smgr_bulk_finish() Using index info to reconstruct a base tree... M src/backend/storage/smgr/bulk_write.c Falling back to patching base and 3-way merge... Auto-merging src/backend/storage/smgr/bulk_write.c CONFLICT (content): Merge conflict in src/backend/storage/smgr/bulk_write.c error: Failed to merge in the changes. hint: Use 'git am --show-current-patch=diff' to see the failed patch Patch failed at 0001 Avoid DELAY_CHKPT_START in smgr_bulk_finish() When you have resolved this problem, run "git am --continue". If you prefer to skip this patch, run "git am --skip" instead. To restore the original branch and stop patching, run "git am --abort". === using patch(1) to apply patch ./v2-0001-Avoid-DELAY_CHKPT_START-in-smgr_bulk_finish.patch === patching file src/backend/storage/smgr/bulk_write.c Hunk #1 FAILED at 40. Hunk #2 FAILED at 180. Hunk #3 FAILED at 194. 3 out of 3 hunks FAILED -- saving rejects to file src/backend/storage/smgr/bulk_write.c.rej Removing src/backend/storage/smgr/bulk_write.c.rej === using 'git apply' to apply patch ./v2-0001-Avoid-DELAY_CHKPT_START-in-smgr_bulk_finish.patch === Applied patch to 'src/backend/storage/smgr/bulk_write.c' with conflicts. U src/backend/storage/smgr/bulk_write.c diff --cc src/backend/storage/smgr/bulk_write.c index 5bec84f9bcf,ccc506d1d73..00000000000 --- a/src/backend/storage/smgr/bulk_write.c +++ b/src/backend/storage/smgr/bulk_write.c @@@ -196,10 -196,10 +196,17 @@@ smgr_bulk_finish(BulkWriteState *bulkst * replay our earlier WAL records. So if a checkpoint started after * the bulk write, fsync the files now. * ++<<<<<<< ours + * The sync request is registered before re-checking the redo pointer: + * if it has still not moved, any checkpoint that moves it later + * absorbs the request before syncing. The first check skips the + * request when a checkpoint already happened during the writes. ++======= + * The sync request is registered before re-checking the redo + * pointer: if it has still not moved, any checkpoint that moves it + * later absorbs the request before syncing. The first check skips + * the request when a checkpoint already happened during the writes. ++>>>>>>> theirs */ need_sync = (bulkstate->start_RedoRecPtr != GetRedoRecPtr()); if (!need_sync)