Re: Unique functional index and FK constraints - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Unique functional index and FK constraints
Date
Msg-id 20816.1037074228@sss.pgh.pa.us
Whole thread Raw
In response to Unique functional index and FK constraints  (Kris Jurka <jurka@ejurka.com>)
List pgsql-hackers
Kris Jurka <jurka@ejurka.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


pgsql-hackers by date:

Previous
From: Kris Jurka
Date:
Subject: Unique functional index and FK constraints
Next
From: Tatsuo Ishii
Date:
Subject: Re: the map file between gb18030 and utf8 is error