Re: UNIQUE constraint and indexing
Stephan Szabo <sszabo@megazone23.bigpanda.com>
From: Stephan Szabo <sszabo@megazone23.bigpanda.com>
To: Arcady Genkin <a.genkin@utoronto.ca>
Cc: pgsql-general@postgresql.org
Date: 2001-09-28T15:35:25Z
Lists: 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.