pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jan Wieck <JanWieck@Yahoo.com>
To: mallah@trade-india.com
Cc: pgsql-sql@postgresql.org
Subject: Re: simulating partial fkeys..
Date: Fri, 06 Jun 2003 07:35:50 -0400
Message-ID: <3EE07C96.6090400@Yahoo.com> (raw)
References: <1153.219.65.253.151.1054824932.squirrel@mail.trade-india.com>

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 #




view thread (4+ messages)  latest in thread

Message-ID: <3EE07C96.6090400@Yahoo.com>
Permalink:  ../3EE07C96.6090400@Yahoo.com/
Also on:    postgresql.org/message-id/3EE07C96.6090400@Yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: JanWieck@Yahoo.com, mallah@trade-india.com
  Subject: Re: simulating partial fkeys..
  In-Reply-To: <3EE07C96.6090400@Yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox