From: Michael Paquier <michael@paquier.xyz>
To: Gowdham M <gowdham.m@zohocorp.com>
Cc: shihao zhong <zhong950419@gmail.com>
Cc: pgsql-bugs <pgsql-bugs@lists.postgresql.org>
Cc: zlabs-cstore@zohocorp.com <zlabs-cstore@zohocorp.com>
Subject: Re: [Bug] Heap use-after-free in COPY FROM error context after ON_ERROR ignore skips a row
Date: Fri, 6 Nov 2026 09:20:08 +0900
Message-ID: <au0dOIHO4dCHdfxN@paquier.xyz> (raw)
In-Reply-To: <auwDltrpOjz6WZ1E@paquier.xyz>
References: <1a181ff6be8.6d14feb261368.4036709598649280477@zohocorp.com>
<CAGRkXqT8voMpxMCQAmtwZTTZCuKeJgpPd2rkQ1RsA5FRoVcP0g@mail.gmail.com>
<1a1a02c8095.1d0cc1ef1834.3246685166635259608@zohocorp.com>
<auwDltrpOjz6WZ1E@paquier.xyz>
On Thu, Nov 05, 2026 at 01:18:30PM +0900, Michael Paquier wrote:
> Resetting these two at this location seems a bit weird to me? What do
> you think about the beginning of NextCopyFrom() instead? That's also
> where the fields for the row to NULL are reset. I don't think that
> this should be an issue for the COPY API portability or file_fdw.
This one has been applied down to v17 as of 23e2a332dd24.
--
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: michael@paquier.xyz, gowdham.m@zohocorp.com, zhong950419@gmail.com, zlabs-cstore@zohocorp.com
Subject: Re: [Bug] Heap use-after-free in COPY FROM error context after ON_ERROR ignore skips a row
In-Reply-To: <au0dOIHO4dCHdfxN@paquier.xyz>
References: <1a181ff6be8.6d14feb261368.4036709598649280477@zohocorp.com> <CAGRkXqT8voMpxMCQAmtwZTTZCuKeJgpPd2rkQ1RsA5FRoVcP0g@mail.gmail.com> <1a1a02c8095.1d0cc1ef1834.3246685166635259608@zohocorp.com> <auwDltrpOjz6WZ1E@paquier.xyz> <au0dOIHO4dCHdfxN@paquier.xyz>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox