X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (developer.postgresql.org [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id 8B4DDEFFAA for ; Fri, 6 Jun 2003 11:40:10 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 64759-10 for ; Fri, 6 Jun 2003 11:40:02 +0000 (GMT) Received: from europa.janwieck.net (h00045a2e4e7c.ne.client2.attbi.com [24.131.181.55]) by svr1.postgresql.org (Postfix) with ESMTP id A67F0EFF8D for ; Fri, 6 Jun 2003 11:40:01 +0000 (GMT) Received: from Yahoo.com (linksys.janwieck.net [192.168.192.1]) (authenticated) by europa.janwieck.net (8.11.6/8.11.6) with ESMTP id h56BdTN15024; Fri, 6 Jun 2003 07:39:29 -0400 Message-ID: <3EE07C96.6090400@Yahoo.com> Date: Fri, 06 Jun 2003 07:35:50 -0400 From: Jan Wieck Organization: Unorganized User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02 X-Accept-Language: en-us, en MIME-Version: 1.0 To: mallah@trade-india.com Cc: pgsql-sql@postgresql.org Subject: Re: simulating partial fkeys.. References: <1153.219.65.253.151.1054824932.squirrel@mail.trade-india.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Archive-Number: 200306/31 X-Sequence-Number: 13789 mallah@trade-india.com wrote: > > hi , > > Is there any way to enforce fkeys only on subset of > the table something on the lines of unique partial indexes Sure. Put NULL values into the referencing fields of those rows you don't want to be checked. Jan -- #======================================================================# # It's easier to get forgiveness for being wrong than for being right. # # Let's break this rule - forgive me. # #================================================== JanWieck@Yahoo.com #