Re: Avoid unnecessary StringInfo allocation in tablesync COPY buffer

From: Aleksander Alekseev <aleksander(at)tigerdata(dot)com>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Cc: ZizhuanLiu X-MAN <44973863(at)qq(dot)com>, Denis Smirnov <darthunix(at)gmail(dot)com>, Álvaro Herrera <alvherre(at)kurilemu(dot)de>, Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com>, David Rowley <dgrowleyml(at)gmail(dot)com>, Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
Subject: Re: Avoid unnecessary StringInfo allocation in tablesync COPY buffer
Date: 2026-11-23 08:56:37
Message-ID: CAJ7c6TP8MQScgqi2TOx9EQY_P1wqJux4dNxMF8ndU9Gn8-6ZLw@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

> I revised the patch based on the discussion. Instead of introducing a separate CopyBuf abstraction,
> v3 reuses the existing StringInfoData mechanism.

I fail to understand the value of v3 except the fact that it saves 3
lines of code. Arguably right now we have much larger problems e.g.
actual bugs to fix and we better spend the time of the reviewers on
these problems.

Considering the fact that Álvaro was not enthusiastic about the
previous version of the patch I doubt it will be accepted. Marking as
Rejected.

--
Best regards,
Aleksander Alekseev

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tender Wang 2026-11-23 09:11:23 Re: Fix stale source values in MERGE RETURNING after a cross-partition update
Previous Message Jan Nidzwetzki 2026-11-23 08:49:30 Re: [PATCH] Fix PITR pause bypass when initial XLOG_RUNNING_XACTS has subxid overflow