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

From Daniel M . Kurry
Subject Re: UNIQUE constraint and indexing
Date
Msg-id 20010928064138.B56332@over-yonder.net
Whole thread Raw
In response to UNIQUE constraint and indexing  (Arcady Genkin <a.genkin@utoronto.ca>)
List pgsql-general
On Thu, Sep 27, 2001 at 06:30:50PM -0400, some SMTP stream spewed forth:
> 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);

Yes, to the best of my knowledge.

Daniel M. Kurry

> Many thanks,
> --
> Arcady Genkin
> i=1; while 1, hilb(i); i=i+1; end

pgsql-general by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Randomize Result Set Order
Next
From: "Dinesh Parikh"
Date:
Subject: Fw: Problem Related to Goto