Re: Unique functional index and FK constraints

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Kris Jurka <jurka(at)ejurka(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Unique functional index and FK constraints
Date: 2002-11-12 04:10:28
Message-ID: 20816.1037074228@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Kris Jurka <jurka(at)ejurka(dot)com> writes:
> When you restructured the unique index location and validation for
> foreign key constraints around 9/22 you added the restriction that the
> supporting unique index may not be functional. I believe that this
> restriction is not necessary.

Hmm ... I'm not convinced. What about functions that return NULL for
some inputs? A unique index will not reject multiple NULL entries.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tatsuo Ishii 2002-11-12 04:39:41 Re: the map file between gb18030 and utf8 is error
Previous Message Kris Jurka 2002-11-12 03:00:33 Unique functional index and FK constraints