Re: PostgreSQL equivalent of the Oracale 'unique'

From: Scott Marlowe <smarlowe(at)g2switchworks(dot)com>
To: stafford(at)marine(dot)rutgers(dot)edu
Cc: pgsql general <pgsql-general(at)postgresql(dot)org>
Subject: Re: PostgreSQL equivalent of the Oracale 'unique'
Date: 2006-11-20 23:13:32
Message-ID: 1164064412.6040.495.camel@state.g2switchworks.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Michael Glaesemann 2006-11-20 23:16:56 Re: More on unique vs distinct
Previous Message Joshua D. Drake 2006-11-20 23:13:10 Re: More on unique vs distinct