Apr 2020

4 commits
In caught-up logical walsender, sleep only in WalSndWaitForWal().
25 Apr 2020Noah Mischmaster13beta1REL_19_STABLE13beta1REL_18_STABLE13beta1REL_17_STABLE13beta1REL_16_STABLE13beta1REL_15_STABLE13beta1REL_14_STABLE13beta1REL_13_STABLE13beta1
LLM analysis, 99% surepart of a posted patchsetlight changesfrom patchset #92 of 2 reviewers saw the final version

Commits the replacement-fix portion of the two-patch submission #9, leaving its revert to a separate commit. Both hunks in src/backend/replication/walsender.c match except for removal of a stray comma in a comment.

  • Fujii Masaosaw the final versionLLM analysis, 100% sureExamined the blocking behavior and proposed a comment adjustment in #10, accepted the explanation in #16, and received explicit review credit in the commit.
  • Michael Paquiersaw the final versionLLM analysis, 100% sureReported in #17 that idle physical and logical walsenders no longer consumed 100% CPU, and received explicit review credit in the commit.
Revert "When WalSndCaughtUp, sleep only in WalSndWaitForWal()."
25 Apr 2020Noah Mischmaster13beta1REL_19_STABLE13beta1REL_18_STABLE13beta1REL_17_STABLE13beta1REL_16_STABLE13beta1REL_15_STABLE13beta1REL_14_STABLE13beta1REL_13_STABLE13beta1reverts 1 commit here
LLM analysis, 99% surepart of a posted patchsetlight changesfrom patchset #91 of 1 reviewer saw the final version

Commits exactly the revert portion of #9, with identical hunks after excluding blob IDs. It reverses 4216858122 to eliminate idle physical-walsender busy-waiting; the replacement portion landed separately.

  • Michael Paquiersaw the final versionLLM analysis, 88% sureTested the posted revert-and-replacement series and confirmed in #17 that idle physical and logical walsenders no longer consumed 100% CPU.
Add a wait_for_catchup() before immediate stop of a test master.
14 Apr 2020Noah Mischmaster13beta1REL_19_STABLE13beta1REL_18_STABLE13beta1REL_17_STABLE13beta1REL_16_STABLE13beta1REL_15_STABLE13beta1REL_14_STABLE13beta1REL_13_STABLE13beta1+3 more
LLM analysis, 100% surewritten from the discussion, no matching patch

In #2, Noah Misch reproduced a slow-walsender race and announced adding wait_for_catchup() before immediate shutdown. The commit implements that one-line fix in src/test/recovery/t/010_logical_decoding_timelines.pl; neither attached patchset changes this test.

When WalSndCaughtUp, sleep only in WalSndWaitForWal().
11 Apr 2020Noah Mischmaster13beta1REL_19_STABLE13beta1REL_18_STABLE13beta1REL_17_STABLE13beta1REL_16_STABLE13beta1REL_15_STABLE13beta1REL_14_STABLE13beta1REL_13_STABLE13beta1
LLM analysis, 100% surelanded as postedfrom patchset #1

All three diff hunks in src/backend/replication/walsender.c match #1 exactly after excluding blob IDs. WalSndLoop() sleeps only when output remains pending, leaving other waiting to WalSndWaitForWal().

Credits across 4 commits

Author
Noah MischLLM3
Committer
Noah Misch4

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