Re: Which hook to use when overriding utility commands (COPY ...)

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: Hannu Krosing <hannuk(at)google(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Which hook to use when overriding utility commands (COPY ...)
Date: 2022-03-19 12:44:18
Message-ID: YjXQIiumMU0aPdT8@paquier.xyz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Dong Wook Lee 2022-03-19 16:18:26 Re: Add pg_freespacemap extension sql test
Previous Message Hannu Krosing 2022-03-19 11:28:46 Which hook to use when overriding utility commands (COPY ...)