Re: Deferred partial/expression unique constraints

From: Dean Rasheed <dean(dot)a(dot)rasheed(at)gmail(dot)com>
To: Josh Berkus <josh(at)agliodbs(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Deferred partial/expression unique constraints
Date: 2011-07-12 18:57:44
Message-ID: CAEZATCXCrcCDqqfJGL7YSJfDaJvr0Xh=MF_k-fLTBCaGCcx8Lg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 12 July 2011 19:26, Josh Berkus <josh(at)agliodbs(dot)com> wrote:
> On 7/12/11 9:46 AM, Andres Freund wrote:
>> Hi,
>>
>> I guess $subject wasn't implemented because plain unique indexes aren't
>> represented in pg_constraint and thus do not have a place to store information
>> about being deferred?
>> Other than that I do not see any special complications in implementing it?
>
> Um, I thought that deferrable unique constraints were a 9.0 feature, no?
>

Yes, but there is no syntax to create a unique constraint on an
expression, and hence to create a deferrable unique expression check.

However, that doesn't seem like such a serious limitation, because the
same functionality can be achieved using an exclusion constraint with
the equality operator.

Regards,
Dean

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Joshua D. Drake 2011-07-12 19:13:08 Re: Full GUID support
Previous Message Josh Berkus 2011-07-12 18:56:03 Re: Full GUID support