Search Postgresql Archives

Re: Primary Key

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 21/11/2007, Sascha Bohnenkamp <asbohnenkamp@xxxxxx> 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.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux