Nov 2026

1 commit
Avoid unnecessary allocation for tablesync.c COPY buffer
24 Nov 2026Álvaro Herreramasterunreleased
LLM analysis, 99% suremodified before commitlight changesfrom patchset #52 of 3 reviewers saw the final version

The commit preserves all functional edits from #5 in src/backend/replication/logical/tablesync.c, adding buffer-ownership comments and Assert(copybuf.cursor == copybuf.len) before walrcv_receive(), plus rewriting the commit message. Both the submitted patch and committed message credit Chao Li, although ZizhuanLiu supplied the final attachment.

  • Denis Smirnovsaw an earlier versiontrailerIn #4, Denis compared both versions and proposed initReadOnlyStringInfo(); the subsequent #5 also changed state scope and removed per-COPY initialization, beyond light edits.
  • ZizhuanLiu (X-MAN)saw the final versiontrailerIn #5, ZizhuanLiu supplied and explained the adopted revision, including function-local state and read-only initialization, after which only comments, an invariant assertion, and commit-message edits followed.
  • Álvaro Herrerasaw the final versioncommittercommitted the patch

Credits across 1 commit

Author
Chao Li1
Reviewer
Alvaro Herreracommitter1
Denis Smirnov1
ZizhuanLiu X-MAN1
Committer
Alvaro Herrera1