Re: Adding Support for Copy callback functionality on COPY TO api - Mailing list pgsql-hackers

From Nathan Bossart
Subject Re: Adding Support for Copy callback functionality on COPY TO api
Date
Msg-id 20221008173741.GB882834@nathanxps13
Whole thread Raw
In response to Re: Adding Support for Copy callback functionality on COPY TO api  (Michael Paquier <michael@paquier.xyz>)
Responses Re: Adding Support for Copy callback functionality on COPY TO api  (Nathan Bossart <nathandbossart@gmail.com>)
List pgsql-hackers
On Sat, Oct 08, 2022 at 02:11:38PM +0900, Michael Paquier wrote:
> Using an ereport(NOTICE) to show the data reported in the callback is
> fine by me.  How about making the module a bit more modular, by
> passing as argument a regclass and building a list of arguments with
> it?  You may want to hold the ShareAccessLock on the relation until
> the end of the transaction in this example.

Yeah, that makes more sense.  It actually simplifies things a bit, too.

-- 
Nathan Bossart
Amazon Web Services: https://aws.amazon.com

Attachment

pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: Non-robustness in pmsignal.c
Next
From: Andres Freund
Date:
Subject: Re: START_REPLICATION SLOT causing a crash in an assert build