Re: UNIQUE constraint and indexing - Mailing list pgsql-general

From Stephan Szabo
Subject Re: UNIQUE constraint and indexing
Date
Msg-id Pine.BSF.4.21.0109280834500.25946-100000@megazone23.bigpanda.com
Whole thread Raw
In response to UNIQUE constraint and indexing  (Arcady Genkin <a.genkin@utoronto.ca>)
Responses Re: UNIQUE constraint and indexing
List pgsql-general
On 27 Sep 2001, Arcady Genkin wrote:

> Is the index, created implicitely by "UNIQUE" constraint, the same
> kind as created explicitely with "CREATE INDEX"?  In other words,
> is the following piece of SQL redundant?
>
> create table foo (
>        bar serial primary key,
>        baz text not null unique );
> create index foo_baz_idx on foo(baz);

Apart from the index for unique being a unique index, I believe so.


pgsql-general by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: PostgreSQL 7.1 on SMP: FreeBSD 4.3 || Linux 2.4.x?
Next
From: "Steve Wolfe"
Date:
Subject: Re: How to make a REALLY FAST db server?