Re: UNIQUE constraints on function results

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Markus Schiltknecht <markus(at)bluegap(dot)ch>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: UNIQUE constraints on function results
Date: 2006-10-05 13:40:37
Message-ID: 12425.1160055637@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Markus Schiltknecht <markus(at)bluegap(dot)ch> writes:
> UNIQUE (t1, lower(t2)));

> I can easily create an index for my needs [1], why can I not add such a
> unique constraint? Thanks for clarification.

Because the SQL spec defines this syntax, and it only allows column
names there.

Extending the spec in this particular direction is not as easy as it
might look, either. What will you do with the information_schema
description of the unique constraint?

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Peter Bauer 2006-10-05 14:10:26 Re: Major Performance decrease after some hours
Previous Message Markus Schiltknecht 2006-10-05 13:32:53 Re: UNIQUE constraints on function results