Avoid unnecessary StringInfo allocation in tablesync COPY buffer

First seen: 2026-05-09 06:10:50+00:00 · Messages: 3 · Participants: 2

Latest Update

2026-05-14 · claude-opus-4-6

Incremental Update: v2 Patch Submitted

Evan Li has responded to Álvaro Herrera's feedback and submitted a v2 patch that follows the suggested direction: replacing the StringInfo usage with a purpose-built file-local struct.

What Changed

Assessment

This aligns exactly with the resolution path predicted in the prior analysis. The v2 patch addresses both concerns:

  1. Performance: Eliminates the unnecessary makeStringInfo() double-palloc and the orphaned 1024-byte buffer.
  2. Semantic clarity: Removes the misleading use of StringInfo for state that is never used as a growable string buffer.

No further technical discussion or review has occurred yet beyond this submission.