UNIQUE on everything except primary key - Mailing list pgsql-sql

From gvim
Subject UNIQUE on everything except primary key
Date
Msg-id 4D4ACD57.1090508@gmail.com
Whole thread Raw
Responses Re: UNIQUE on everything except primary key  (Andreas Gaab <A.Gaab@scanlab.de>)
Re: UNIQUE on everything except primary key  (msi77 <msi77@yandex.ru>)
List pgsql-sql
I have a table with 11 columns and want to eliminate duplication on INSERTs. What's the best method? The obvious
solutionwould be to create a UNIQUE index on everything except the primary key - 'id' - but that's a 10-column index
anddoesn't sound very efficient. Am I missing something more obvious?
 

gvim


pgsql-sql by date:

Previous
From: Florian Weimer
Date:
Subject: Transaction-specific global variable
Next
From: Andreas Gaab
Date:
Subject: Re: UNIQUE on everything except primary key