public inbox for [email protected]  
help / color / mirror / Atom feed
From: Michael Paquier <[email protected]>
To: Hannu Krosing <[email protected]>
Cc: pgsql-hackers <[email protected]>
Subject: Re: Which hook to use when overriding utility commands (COPY ...)
Date: Sat, 19 Mar 2022 21:44:18 +0900
Message-ID: <[email protected]> (raw)
In-Reply-To: <CAMT0RQRPRu9CwKnXM5dA7F5L-UsGkS_pNyH23hyO1xJZE95OKg@mail.gmail.com>
References: <CAMT0RQRPRu9CwKnXM5dA7F5L-UsGkS_pNyH23hyO1xJZE95OKg@mail.gmail.com>

On Sat, Mar 19, 2022 at 12:28:46PM +0100, Hannu Krosing wrote:
> Which hook should I use when overriding the COPY command in an extension?

CopyStmt goes through ProcessUtility(), so you can use the hook called
ProcessUtility_hook to override what you want.
--
Michael


Attachments:

  [application/pgp-signature] signature.asc (833B, ../[email protected]/2-signature.asc)
  download

view thread (4+ messages)  latest in thread

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: Which hook to use when overriding utility commands (COPY ...)
  In-Reply-To: <[email protected]>

* 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