[GENERAL] order of trigger firing relative to column/table constraints

2009-12-17 Thread Daniel Popowich
I am designing a DB where column/table constraints are not sufficient for data integrity (e.g., guaranteeing non-recursive tree graphs) so I'm writing my first complicated triggers and I have been searching docs and archives of this list for detailed information on when triggers are fired

Re: [GENERAL] order of trigger firing relative to column/table constraints

2009-12-17 Thread Craig Ringer
On 18/12/2009 1:18 PM, Daniel Popowich wrote: For example, it was at first surprising to discover in my before-row trigger that foreign key constraints had not yet been checked (which I assumed I could take for granted in my trigger since I had defined the column constraint). Nope. CHECK