Re: simulating partial fkeys..

From: Jan Wieck <JanWieck(at)Yahoo(dot)com>
To: mallah(at)trade-india(dot)com
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: simulating partial fkeys..
Date: 2003-06-06 11:35:50
Message-ID: 3EE07C96.6090400@Yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

mallah(at)trade-india(dot)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(at)Yahoo(dot)com #

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Bruno Wolff III 2003-06-06 12:20:01 Re: simulating partial fkeys..
Previous Message Richard Huxton 2003-06-06 10:42:36 Re: simulating partial fkeys.. [ATTN Developers please]