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

From Michael Paquier
Subject Re: Adding Support for Copy callback functionality on COPY TO api
Date
Msg-id Y0EGighrcVgNnp30@paquier.xyz
Whole thread Raw
In response to Re: Adding Support for Copy callback functionality on COPY TO api  (Nathan Bossart <nathandbossart@gmail.com>)
Responses Re: Adding Support for Copy callback functionality on COPY TO api  (Nathan Bossart <nathandbossart@gmail.com>)
List pgsql-hackers
On Fri, Oct 07, 2022 at 02:48:24PM -0700, Nathan Bossart wrote:
> Here is an attempt at adding such a test module.

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.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: use has_privs_of_role() for pg_hba.conf
Next
From: Joe Conway
Date:
Subject: Re: use has_privs_of_role() for pg_hba.conf