Re: Which hook to use when overriding utility commands (COPY ...) - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Which hook to use when overriding utility commands (COPY ...)
Date
Msg-id YjXQIiumMU0aPdT8@paquier.xyz
Whole thread Raw
In response to Which hook to use when overriding utility commands (COPY ...)  (Hannu Krosing <hannuk@google.com>)
List pgsql-hackers
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

Attachment

pgsql-hackers by date:

Previous
From: Hannu Krosing
Date:
Subject: Which hook to use when overriding utility commands (COPY ...)
Next
From: Dong Wook Lee
Date:
Subject: Re: Add pg_freespacemap extension sql test