public inbox for [email protected]  
help / color / mirror / Atom feed
From: vellaipandiyan sm <[email protected]>
To: [email protected]
Subject: Review observations for COPY ON_ERROR_TABLE patch
Date: Mon, 18 May 2026 12:25:43 +0530
Message-ID: <CAGXjcjmTMkYCHDsj6PtLyoCzZGu5gpGy7XkQCamaqGnvc52N9A@mail.gmail.com> (raw)

Hello hackers,

I was reviewing the COPY ON_ERROR_TABLE patch and had a few implementation
questions that may be worth considering.

   - The COPY multi-insert path currently depends on CopyMultiInsertBuffer
   and table_multi_insert() batching behavior. Recovering from row-level
   failures while buffers are partially populated may complicate buffer
   consistency, trigger visibility, or index handling.
   - Would it make sense to initially disable multi-insert batching when
   ON_ERROR_TABLE is enabled (forcing CIM_SINGLE)? That seems like a simpler
   starting point for correctness and recovery semantics.
   - I was also curious about the intended transaction behavior for
   rejected rows. Should rows written to the error table rollback together
   with the surrounding COPY transaction if a later failure occurs?
   - Another possible edge case is recursive failure handling if insertion
   into the error table itself fails.

I have not yet reproduced a concrete failure case, so these are currently
review observations rather than confirmed issues.

Thanks for working on this feature.

Regards,
Vellaipandiyan


reply

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 using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: Review observations for COPY ON_ERROR_TABLE patch
  In-Reply-To: <CAGXjcjmTMkYCHDsj6PtLyoCzZGu5gpGy7XkQCamaqGnvc52N9A@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox