From: | Jeff Frost <jeff(at)frostconsultingllc(dot)com> |
---|---|
To: | Michael Glaesemann <grzm(at)myrealbox(dot)com> |
Cc: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: Check/unique constraint question |
Date: | 2006-03-05 18:32:59 |
Message-ID: | Pine.LNX.4.64.0603051029350.29717@discord.dyndns.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
On Sun, 5 Mar 2006, Michael Glaesemann wrote:
>
> On Mar 5, 2006, at 17:25 , Jeff Frost wrote:
>
> I believe you're looking for what is called a partial index.
>
> http://www.postgresql.org/docs/current/interactive/indexes-partial.html
>
> create unique index foo_partial_idx on foo (id) where active;
Thanks Michael, that's exactly what I was looking for. Guess I just couldn't
figure out how to search for it in the docs properly.
Also thanks to Nikolay and Volkan for the other responses which were along the
lines of what I thought was necessary.
--
Jeff Frost, Owner <jeff(at)frostconsultingllc(dot)com>
Frost Consulting, LLC http://www.frostconsultingllc.com/
Phone: 650-780-7908 FAX: 650-649-1954
From | Date | Subject | |
---|---|---|---|
Next Message | sramsay | 2006-03-05 18:49:03 | Re: functions in WHERE clause |
Previous Message | Tom Lane | 2006-03-05 18:16:40 | Re: functions in WHERE clause |