Mar 2024

1 commit
Adjust documentation for syncfs().
27 Mar 2024Nathan Bossartmaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1Also in: pgsql: Allow using syncfs() in frontend utilities. (landed as posted)

Oct 2023

1 commit
Improve the naming in wal_sync_method code.
13 Oct 2023Nathan Bossartmaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 100% surelanded as postedfrom patchset #481 of 1 reviewer saw the final version

All changed lines across the nine files match #48, including the corrected WAL_SYNC_METHOD_FSYNC_WRITETHROUGH reference. Both the attachment and commit explicitly credit Maxim Orlov, whose earlier implementation appears in #41.

  • Nathan Bossartsaw the final versioncommittercommitted the patch

Sep 2023

4 commits
Allow using syncfs() in frontend utilities.
6 Sep 2023Nathan Bossartmaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 99% surepart of a posted patchsetlight changesfrom patchset #321 of 4 reviewers saw the final version

Lands the fourth component of #32, adding --sync-method, documentation, and the initdb test. Compared with that component, the only changed content is a pg_upgrade documentation typo and a comment above parse_sync_method().

  • Michael Paquiersaw the final versiontrailerMichael reviewed the option design and documentation, requested tests and the series split in #29, and accepted #30 with only a redundant-test removal in #31.
  • Thomas Munrosaw an earlier versiontrailerThomas required explicit opt-in in #3 because syncfs flushes unrelated data and older kernels miss errors, before the prototype became the broader --sync-method implementation.
  • Robert Haassaw an earlier versiontrailerRobert defended retaining --no-sync in #18 during discussion of the earlier option design, before the subsequent shared-helper revisions and series split.
  • Justin Pryzbysaw an earlier versiontrailerJustin questioned allocation, unsupported-method errors, and utility coverage in #33, apparently reviewing the early --sync-method version since #34 says later versions already contained the error distinction.
Add support for syncfs() in frontend support functions.
6 Sep 2023Nathan Bossartmaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 100% surepart of a posted patchsetlight changesfrom patchset #321 of 1 reviewer saw the final version

Lands the third component of #32, preserving its syncfs implementation and fsync defaults. Committer edits rename fsync_pgdata()/fsync_dir_recurse() to sync_pgdata()/sync_dir_recurse() and update related comments and formatting.

  • Michael Paquiersaw the final versiontrailerMichael examined synchronization and error handling in #12 and #27, endorsed the revised helpers in #29, and accepted the split in #31.
Make enum for sync methods available to frontend code.
6 Sep 2023Nathan Bossartmaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 100% surepart of a posted patchsetlight changesfrom patchset #321 of 1 reviewer saw the final version

Lands only the second component of #32, moving and renaming RecoveryInitSyncMethod as DataDirSyncMethod. Its added and removed lines match that component exactly.

  • Michael Paquiersaw the final versiontrailerMichael requested a less generic enum name and platform-independent values in #16, reviewed the shared-header arrangement in #20, and accepted the final split in #31.
Move PG_TEMP_FILE* macros to file_utils.h.
6 Sep 2023Nathan Bossartmaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 100% surepart of a posted patchsetlight changesfrom patchset #321 of 1 reviewer saw the final version

Lands only the first component of #32, moving PG_TEMP_FILE* into common/file_utils.h and updating seven files. Its added and removed lines match that component exactly, and #37 confirms the prerequisite was committed separately.

  • Michael Paquiersaw the final versiontrailerMichael approved the standalone macro move in #24, explicitly recommended its independent commit in #27, and accepted the later series split in #31.

Credits across 6 commits

Author
Nathan BossartLLM3
Maxim Orlov1
Reviewer
Michael Paquier4
Robert Haas2
Justin Pryzby1
Nathan Bossartcommitter1
Thomas Munro1
Reported by
Peter Eisentraut1
Robert Haas1
Co author
Justin Pryzby2
Committer
Nathan Bossart6

N LLM means N of the credits come from LLM analysis, not from commit trailers.