Re: UNIQUE constraint and indexing

From: "Daniel M (dot) Kurry" <grasshacker(at)over-yonder(dot)net>
To: Arcady Genkin <a(dot)genkin(at)utoronto(dot)ca>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: UNIQUE constraint and indexing
Date: 2001-09-28 11:41:38
Message-ID: 20010928064138.B56332@over-yonder.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Nils Zonneveld 2001-09-28 12:27:48 Re: TEST DATA GENERATION
Previous Message Ben-Nes Yonatan 2001-09-28 11:23:26 boolean query