Re: PostgreSQL equivalent of the Oracale 'unique' - Mailing list pgsql-general

From Scott Marlowe
Subject Re: PostgreSQL equivalent of the Oracale 'unique'
Date
Msg-id 1164064412.6040.495.camel@state.g2switchworks.com
Whole thread Raw
In response to PostgreSQL equivalent of the Oracale 'unique' qualifier  ("Wm.A.Stafford" <stafford@marine.rutgers.edu>)
List pgsql-general
On Mon, 2006-11-20 at 14:13, Wm.A.Stafford wrote:
> I hope the subject says it all.  I'm porting an Oracle-centric
> application to PostgreSQL and the Oracle sql is full of the 'unique'
> qualifier.  I'm assuming PostgreSQL does not support 'unique' since
> don't see a 'unique' anywhere in the PostgreSQL docs.  Is there a
> substitute or a technique to get the same result?

Context is king.

Do you mean:

create unique index abc on table xyz(field1);

???

OR some other usage of unique.  An example would really help us help
you.  otherwise we're all blind men describing an elephant (the
postgresql elephant at that!)

So, is it in an index, or somewhere else.  Cause in an index it's fine.
I've never used unique anywhere else in pgsql.

pgsql-general by date:

Previous
From: "Joshua D. Drake"
Date:
Subject: Re: More on unique vs distinct
Next
From: "Dann Corbit"
Date:
Subject: Re: PostgreSQL equivalent of the Oracale 'unique' qualifier