Re: Triggers on system tables

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Rod Taylor <pg(at)rbt(dot)ca>
Cc: Gavin Sherry <swm(at)linuxworld(dot)com(dot)au>, PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Triggers on system tables
Date: 2004-02-12 04:17:03
Message-ID: 26704.1076559423@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Rod Taylor <pg(at)rbt(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Gavin Sherry 2004-02-12 04:40:26 Re: Triggers on system tables
Previous Message Tom Lane 2004-02-12 04:11:27 Re: Triggers on system tables