Re: Primary Key

Поиск
Список
Период
Сортировка
От Peter Childs
Тема Re: Primary Key
Дата
Msg-id a2de01dd0711230133v27f17b97y4e16937e092a168f@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Primary Key  (Sascha Bohnenkamp <asbohnenkamp@gmx.de>)
Ответы Re: Primary Key
Re: Primary Key
Список pgsql-general


On 21/11/2007, Sascha Bohnenkamp <asbohnenkamp@gmx.de> wrote:
> Fie on you evil synthetic key lovers.  Long live the Natural Key!

think of an foreign key referencing a primary key with 6 columns *urgs*
never!


The worse thing I meet is people who think primary keys need to be integer single field unique serial fields

I tend to agree that primary keys should be single fields if they need to be referenced but should also be natural if at all possible. ie use car number plates rather than some serial int.

Peter.

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

Предыдущее
От: "Peter Childs"
Дата:
Сообщение: Re: Unused item pointers - can someone explain?
Следующее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: Primary Key