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

From Tom Lane
Subject Re: Triggers on system tables
Date
Msg-id 26309.1076556631@sss.pgh.pa.us
Whole thread Raw
In response to Triggers on system tables  (Gavin Sherry <swm@linuxworld.com.au>)
Responses Re: Triggers on system tables  (Gavin Sherry <swm@linuxworld.com.au>)
Re: Triggers on system tables  (Rod Taylor <pg@rbt.ca>)
List pgsql-hackers
Gavin Sherry <swm@linuxworld.com.au> writes:
> There have been a few discussions about triggers on system tables in
> the past and the problems with such triggers seem to be:

I think the killer problem is that we couldn't allow triggers on system
tables to do very much.  By definition, the database is in an inconsistent
state if we are in the middle of updating system tables.  We can't allow
arbitrary bits of SQL to run then.

It might be feasible to allow AFTER triggers on system tables, since
those don't actually fire until end of statement, at which point things
are hopefully consistent again.  I don't even want to think about
allowing BEFORE triggers.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [PATCHES] client_encoding in dump file
Next
From: Gavin Sherry
Date:
Subject: Re: Triggers on system tables