Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 8FE962E0055 for ; Tue, 25 Mar 2008 12:07:50 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 80101-05 for ; Tue, 25 Mar 2008 12:07:40 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 8679D2E003B for ; Tue, 25 Mar 2008 12:07:40 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id m2PF7chF020512; Tue, 25 Mar 2008 11:07:39 -0400 (EDT) To: Craig Ringer cc: pgsql-sql@postgresql.org Subject: Re: Deferrable NOT NULL REFERENCES ... for two-way referential relationship In-reply-to: <47E8AFDE.1080905@postnewspapers.com.au> References: <47E8AFDE.1080905@postnewspapers.com.au> Comments: In-reply-to Craig Ringer message dated "Tue, 25 Mar 2008 16:55:10 +0900" Date: Tue, 25 Mar 2008 11:07:38 -0400 Message-ID: <20511.1206457658@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200803/167 X-Sequence-Number: 30495 Craig Ringer writes: > There are constraint triggers: > http://www.postgresql.org/docs/8.3/static/sql-createconstraint.html > and I could use one to enforce the NOT NULL on the table as a whole (at > an acceptable cost in this case). However, I've seen some posts like > this one: > http://archives.postgresql.org/pgsql-hackers/2005-01/msg00882.php > that suggest that constraint triggers are or have been deprecated. > However, their removal is no longer on the TODO as far as I can tell. Yeah, there is no longer any thought of removing them. regards, tom lane