Jul 2021

2 commits
Use WaitLatch() instead of pg_usleep() at the end of backups
5 Jul 2021Michael Paquiermaster15beta1REL_19_STABLE15beta1REL_18_STABLE15beta1REL_17_STABLE15beta1REL_16_STABLE15beta1REL_15_STABLE15beta1
LLM analysis, 99% surepart of a posted patchsetlight changesfrom patchset #172 of 2 reviewers saw the final version

The commit exactly matches the backup component of #17, previously supplied in #13: its single xlog.c hunk replaces pg_usleep() and explicit wait-event reporting with WaitLatch(MyLatch) and ResetLatch(). The accompanying authentication-delay component is excluded.

  • Michael Paquiersaw the final versiontrailerMichael identified the incorrect recoveryWakeupLatch use in #7, supplied the corrected backup patch in #13, and committed the final version.
  • Stephen Frostsaw the final versiontrailerStephen explicitly reviewed and endorsed the corrected backup patch in #15, which was resent unchanged in #17.
Use WaitLatch() instead of pg_usleep() at end-of-vacuum truncation
2 Jul 2021Michael Paquiermaster15beta1REL_19_STABLE15beta1REL_18_STABLE15beta1REL_17_STABLE15beta1REL_16_STABLE15beta1REL_15_STABLE15beta1
LLM analysis, 99% surepart of a posted patchsetlight changesfrom patchset #42 of 3 reviewers saw the final version

The commit takes only the vacuum-truncation component of #4, preserving its WaitLatch() logic in src/backend/access/heap/vacuumlazy.c. It renames VacuumTruncateLock to VacuumTruncate across the wait-event definitions and documentation and rewords the documentation, as confirmed in #11.

  • Aleksander Alekseevsaw the final versiontrailerAleksander reported successful installcheck-world, feature, specification, and documentation checks on macOS and marked the patch ready for committer in #6.
  • Thomas Munrono review foundtrailerThomas explained why latch waits are preferable and discussed signal races in #2, before the patches existed, but no review of an attached patchset is recorded.
  • Michael Paquiersaw the final versiontrailerMichael endorsed the vacuum-truncation change for monitoring in #7 and announced its application with the renamed wait event in #11.

Credits across 2 commits

Author
Bharath Rupireddy2
Reviewer
Michael Paquier2
Aleksander Alekseev1
Stephen Frost1
Thomas Munro1
Committer
Michael Paquier2