Re: Error bundling script file with extension when event triggercommands are used - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Error bundling script file with extension when event triggercommands are used
Date
Msg-id CAB7nPqSuoDYUazx2+Y57U7C3nM_iHRfVJJN0ooEU7weSjb5rmw@mail.gmail.com
Whole thread Raw
In response to Error bundling script file with extension when event trigger commandsare used  (sanyam jain <sanyamjain22@live.in>)
List pgsql-hackers
On Wed, Dec 6, 2017 at 3:36 PM, sanyam jain <sanyamjain22@live.in> wrote:
> I couldn't understand much from the above thread but like to solve this
> problem.

Not sure that people are much motivated in solving this problem either
as the use-case is very narrow. Based on my memories of the moment
where I looked at this problem, I was thinking that you would need
additional catalog functions able to switch a session-level flag which
disables completely event triggers to happen during the execution of
those commands... So it would mean that such a fix cannot be
back-patched. If you would like to design or implement a patch, of
course feel free! One hacky way to solve this problem would be to
create the event triggers out of the extension creation, meaning that
the object dependencies would need to be tracked by yourself.
-- 
Michael


pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: [HACKERS] parallel.c oblivion of worker-startup failures
Next
From: David Rowley
Date:
Subject: Re: [HACKERS] Runtime Partition Pruning