Re: More on inheritance and foreign keys - Mailing list pgsql-hackers

From Michael Glaesemann
Subject Re: More on inheritance and foreign keys
Date
Msg-id DE6089F9-9578-4C13-AF0A-A4DA5288E7A6@seespotcode.net
Whole thread Raw
In response to More on inheritance and foreign keys  (Albert Cervera Areny <albertca@hotpop.com>)
List pgsql-hackers
On Jun 8, 2006, at 15:38 , Albert Cervera Areny wrote:

> However, I've realized that managing foreign keys with my own
> PL/SQL or C function isn't possible as I need DEFERRED checks which  
> are
> currently only available for foreign keys.

I don't know enough about your situation to be sure if this will work  
or not, but perhaps you want to look at CREATE CONSTRAINT TRIGGER.  
They're deferred to the end of the transaction.

http://www.postgresql.org/docs/8.1/interactive/sql-createconstraint.html

In the hope that this helps,

Michael Glaesemann
grzm seespotcode net





pgsql-hackers by date:

Previous
From: Albert Cervera Areny
Date:
Subject: More on inheritance and foreign keys
Next
From: Simon Riggs
Date:
Subject: Re: That EXPLAIN ANALYZE patch still needs work