Re: Check/unique constraint question - Mailing list pgsql-sql

From Jeff Frost
Subject Re: Check/unique constraint question
Date
Msg-id Pine.LNX.4.64.0603051029350.29717@discord.dyndns.org
Whole thread Raw
In response to Re: Check/unique constraint question  (Michael Glaesemann <grzm@myrealbox.com>)
List 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@frostconsultingllc.com>
Frost Consulting, LLC     http://www.frostconsultingllc.com/
Phone: 650-780-7908    FAX: 650-649-1954


pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: functions in WHERE clause
Next
From:
Date:
Subject: Re: functions in WHERE clause