Nov 2022

1 commit
lwlock: Fix quadratic behavior with very long wait lists
20 Nov 2022Andres Freundmaster16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1REL_15_STABLE15.6REL_14_STABLE14.11REL_13_STABLE13.14+1 moreAlso in: refactoring relation extension and BufferAlloc(), faster COPY (not this thread)
LLM analysis, 100% suremodified before commitlight changesfrom patchset #81 of 1 reviewer saw the final version

The commit preserves the five-file implementation in #8, adding only two LW_WS_WAITING assertions and a cross-reference comment in src/backend/storage/lmgr/lwlock.c, plus expanded commit documentation. Attribution to thread #46850 disagrees with the latest-matching-patchset rule: its credited source #518894 dates to October 29, 2022, whereas #8 dates to October 31 and already contains the named states and initialization changes; that other thread's remaining submissions postdate the commit.

  • Bharath Rupireddysaw the final versiontrailerBharath benchmarked the prototype and reported a possible crash #4, then reviewed the revised patch, suggested assertions, and repeated performance testing #12 #18, with only light changes before commit.

Credits across 1 commit

Author
Andres Freund1
Reviewer
Bharath Rupireddy1
Michael Paquiercommitter1
Committer
Andres Freund1
Michael Paquier1