Re: Triggers on system tables - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Triggers on system tables
Date
Msg-id 26704.1076559423@sss.pgh.pa.us
Whole thread Raw
In response to Re: Triggers on system tables  (Rod Taylor <pg@rbt.ca>)
List pgsql-hackers
Rod Taylor <pg@rbt.ca> writes:
> Yes, the internal calls from one command to another make this tricky --
> but the return Tag is set very early for the statement. Could the Before
> trigger for system commands (CREATE, ALTER, etc.) not be kicked of in
> the same area as the tag is set?

At that point there wouldn't be a "new row" available to pass to the
trigger.  I'm unsure what such a trigger could usefully do.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Triggers on system tables
Next
From: Gavin Sherry
Date:
Subject: Re: Triggers on system tables