Feb 2019

1 commit
Avoid some unnecessary block reads in WAL reader
18 Feb 2019Michael Paquiermaster12beta1REL_19_STABLE12beta1REL_18_STABLE12beta1REL_17_STABLE12beta1REL_16_STABLE12beta1REL_15_STABLE12beta1REL_14_STABLE12beta1REL_13_STABLE12beta1+1 more
LLM analysis, 100% surelanded as postedfrom patchset #13 of 3 reviewers saw the final version

The commit exactly matches the sole patchset's one-line change from reqLen < state->readLen to reqLen <= state->readLen in src/backend/access/transam/xlogreader.c #1. Michael Paquier confirmed committing it after further review and testing #10.

  • Andrey Lepikhovsaw the final versiontrailerHe traced the condition's history and explained how changing from a record offset to a requested length could have introduced the unnecessary reread #5.
  • Michael Paquiersaw the final versiontrailerHe reviewed the equality case, examined the callback usage, and committed the unchanged patch after testing with plugins, pg_waldump, and a primary/standby setup running pgbench #7 #9 #10.
  • Grigory Smolkinsaw the final versiontrailerHe questioned the patch's safety and identified a possible recovery performance benefit, although his brief response reports no testing or detailed code analysis #2.

Credits across 1 commit

Author
Arthur Zakirov1
Reviewer
Andrei Lepikhov1
Grigory Smolkin1
Michael Paquier1
Committer
Michael Paquier1