Re: Unique indicies

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Naz Gassiep <naz(at)mira(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Unique indicies
Date: 2008-02-22 14:58:56
Message-ID: 3280.1203692336@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Naz Gassiep <naz(at)mira(dot)net> writes:
> If you have an index like this:
> CREATE UNIQUE INDEX foo ON tablename (f1, f2);

> Is there any value in having independent indicies on f1 and f2 as well
> or are they unnecessary?

See
http://www.postgresql.org/docs/8.3/static/indexes.html
particularly sections 11.3 and 11.5

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Andreas Kendlinger 2008-02-22 15:05:02 plpgsql function
Previous Message Carlos H. Reimer 2008-02-22 14:50:51 current_query pg_stat_activity column