Unique functional index and FK constraints

From: Kris Jurka <jurka(at)ejurka(dot)com>
To: tgl(at)sss(dot)pgh(dot)pa(dot)us
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Unique functional index and FK constraints
Date: 2002-11-12 03:00:33
Message-ID: 3DD06ED1.91A1AE2@ejurka.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom,

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. Suppose I had a unique index on
LOWER(login). That would imply that login is unique as well. Any
function which returns different results given the same input is no good
for a functional index anyway.

http://archives.postgresql.org/pgsql-committers/2002-09/msg00293.php

Kris Jurka

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2002-11-12 04:10:28 Re: Unique functional index and FK constraints
Previous Message Tom Lane 2002-11-12 01:51:39 Idea for better handling of cntxDirty