From: | Reinoud van Leeuwen <reinoud(at)xs4all(dot)nl> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | how to make a trigger deferrable |
Date: | 2002-12-16 14:18:11 |
Message-ID: | 20021216151811.P15734@spoetnik.xs4all.nl |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hi,
I have a trigger in my database that checks to see if there is another
record in the table, and when there is if the type is correct. (if the
first one is of type "parent", the other has to be of type "child").
When updating these records in a transaction, the trigger only works when
I make it deferrable. I hacked this by updating pg_trigger and setting the
column tgdeferrable to true.
IS there a way to do this in SQL? I can only find documentation on setting
a constraint to deferrable, but not on a trigger.
TIA,
Reinoud
--
__________________________________________________
"Nothing is as subjective as reality"
Reinoud van Leeuwen reinoud(dot)v(at)n(dot)leeuwen(dot)net
http://www.xs4all.nl/~reinoud
__________________________________________________
From | Date | Subject | |
---|---|---|---|
Next Message | Shridhar Daithankar | 2002-12-16 14:20:09 | Re: Big 7.4 items |
Previous Message | Greg Copeland | 2002-12-16 14:13:13 | Re: Big 7.4 items |