UNIQUE on everything except primary key

Поиск
Список
Период
Сортировка
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 по дате отправления:

Предыдущее
От: Florian Weimer
Дата:
Сообщение: Transaction-specific global variable
Следующее
От: Andreas Gaab
Дата:
Сообщение: Re: UNIQUE on everything except primary key