Re: Alternative to serial primary key

Поиск
Список
Период
Сортировка
От Sander Steffann
Тема Re: Alternative to serial primary key
Дата
Msg-id 2B1A983EDCEC3447B22632B64F72646014EB1B@bill.office.computel.nl
обсуждение исходный текст
Ответ на Re: Alternative to serial primary key  ("D'Arcy J.M. Cain" <darcy@druid.net>)
Список pgsql-sql
Hi D'Arcy,

> It's not that I think that the primary key should never have 
> meaning in the database (I use the two letter country code as 
> the PK in my country table for example) I just think that 
> it's dangerous ground and should be tread very carefully.

You are right. I now realize that I have done exactly the same thing in my
database designs :)  In 95+% of the cases I would choose a serial, but this
is a good counter-example.

Thanks for making me think :)
Sander



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

Предыдущее
От: Michael Glaesemann
Дата:
Сообщение: Re: Atomar SQL Statement
Следующее
От: Michael Glaesemann
Дата:
Сообщение: Re: How to get list of days between two dates?