Re: Is a primary key made of a couple columns so much better than a unique() constraint ?

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: Is a primary key made of a couple columns so much better than a unique() constraint ?
Дата
Msg-id 20051010150206.GB29638@svana.org
обсуждение исходный текст
Ответ на Is a primary key made of a couple columns so much better than a unique() constraint ?  (David Pradier <david.pradier@clarisys.fr>)
Ответы Re: Is a primary key made of a couple columns so much better than a unique() constraint ?  (David Pradier <david.pradier@clarisys.fr>)
Re: Is a primary key made of a couple columns so much better than a unique() constraint ?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
On Mon, Oct 10, 2005 at 04:44:54PM +0200, David Pradier wrote:
> Hi everybody,
>
> i'd like to know if it is better to use a primary key made of a couple
> columns, than to use a constraint UNIQUE() on this couple columns,
> regarding the sake of postgresql.

In PostgreSQL, both primary keys and UNIQUE constraints are implemented
via UNIQUE indexes, ergo there is no difference...

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

Вложения

В списке pgsql-general по дате отправления:

Предыдущее
От: "Welty, Richard"
Дата:
Сообщение: Re: Oracle buys Innobase
Следующее
От: michael
Дата:
Сообщение: Re: Oracle buys Innobase