Re: Finding sequential records

Поиск
Список
Период
Сортировка
От Richard Broersma
Тема Re: Finding sequential records
Дата
Msg-id 396486430809300702g1502d7f4o2947ab10d1f76ae0@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Finding sequential records  (Steve Midgley <science@misuse.org>)
Список pgsql-sql
On Mon, Sep 29, 2008 at 11:05 PM, Steve Midgley <science@misuse.org> wrote:

> Any reason why using serial PK's with "compound
> natural unique indices" is better/worse than just using natural PK's?

Not really, surrogate keys will always work well so long as unwanted
duplicates are constrained.  Surrogate Keys will allow as much
flexibility and versatility as is possible.  However as the case of
unwanted duplicates illustrates, sometimes flexibility and versatility
is always wanted.   So if flexibility and versatility is valued less
than the ability to add inflexible constraints (beyond preventing
duplicates) across multiple relationships, then using natural primary
keys becomes very attractive.


-- 
Regards,
Richard Broersma Jr.

Visit the Los Angeles PostgreSQL Users Group (LAPUG)
http://pugs.postgresql.org/lapug


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

Предыдущее
От: "Oliveiros Cristina"
Дата:
Сообщение: Re: optimizing a query over tree-like structure
Следующее
От: az@svilendobrev.com
Дата:
Сообщение: Re: optimizing a query over tree-like structure