Re: [Bug] Heap use-after-free in COPY FROM error context after ON_ERROR ignore skips a row

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: Gowdham M <gowdham(dot)m(at)zohocorp(dot)com>
Cc: shihao zhong <zhong950419(at)gmail(dot)com>, pgsql-bugs <pgsql-bugs(at)lists(dot)postgresql(dot)org>, "zlabs-cstore(at)zohocorp(dot)com" <zlabs-cstore(at)zohocorp(dot)com>
Subject: Re: [Bug] Heap use-after-free in COPY FROM error context after ON_ERROR ignore skips a row
Date: 2026-11-06 00:20:08
Message-ID: au0dOIHO4dCHdfxN@paquier.xyz
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tatsuo Ishii 2026-11-06 00:25:31 Re: first_value()/nth_value() with IGNORE NULLS loop forever (EXCLUDE GROUP/TIES, frame past partition end, no ORDER BY)
Previous Message Amit Langote 2026-11-06 00:08:21 Re: [***DKIM violation***] Re: BUG #19418: SQL/JSON JSON_VALUE() does not conform to ISO/IEC 9075-2:2023(E) 6.34 <JSON value constructor>