On Mon, 2024-08-26 at 11:09 +0530, Bharath Rupireddy wrote: > On Wed, Jun 5, 2024 at 12:42 PM Bharath Rupireddy > <bharath.rupireddyforpostg...@gmail.com> wrote: > > > > Please find the v22 patches with the above changes. > > Please find the v23 patches after rebasing 0005 and adapting 0004 for > 9758174e2e.
In patches 0002-0004, they must avoid the multi insert path when there are before-row triggers, instead-of-row triggers, or volatile functions used (see copyfrom.c:917-1006). Also, until we decide on the RETURNING clause, we should block the multi-insert path for that, as well, or implement it by using the callback to copy tuples into the caller's context. In 0003, why do you need the global insert_modify_buffer_flush_context? 0004 is the only place that calls table_modify_buffer_flush(). Is that really necessary, or is automatic flushing enough? Regards, Jeff Davis