Re: Call EndCopyFrom() after initial table sync in logical replication

Chao Li <li.evan.chao@gmail.com>

From: Chao Li <li.evan.chao@gmail.com>
To: cca5507 <cca5507@qq.com>
Cc: Fujii Masao <masao.fujii@gmail.com>, Shinya Kato <shinya11.kato@gmail.com>, PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2026-05-08T03:32:50Z
Lists: pgsql-hackers

Commits

Same data as JSON: GET /api/v1/messages/:b64id/commits the thread's linked commits as JSON, with link sources. API reference →
  1. Fix stale COPY progress during logical replication table sync

  2. Use stack-allocated StringInfoDatas, where possible


> On May 8, 2026, at 10:34, cca5507 <cca5507@qq.com> wrote:
> 
> Hi,
> 
> Maybe we want to add "free_parsestate(pstate);" after the "EndCopyFrom()" as well?
> 

I agree. While here, looks like attnamelist can also be freed.

Best regards,
--
Chao Li (Evan)
HighGo Software Co., Ltd.
https://www.highgo.com/