Re: Postgres-R: primary key patches

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Postgres-R: primary key patches
Дата
Msg-id 22022.1216393574@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Postgres-R: primary key patches  (David Fetter <david@fetter.org>)
Ответы Re: Postgres-R: primary key patches  (Markus Wanner <markus@bluegap.ch>)
Список pgsql-hackers
David Fetter <david@fetter.org> writes:
> On Fri, Jul 18, 2008 at 03:04:08PM +0200, Markus Schiltknecht wrote:
>> But what do we have primary keys for, in the first place?

> We have them because people are used to thinking in terms of a
> "PRIMARY KEY," not because that concept is actually distinguishable
> from a non-partial UNIQUE NOT NULL constraint.

No, we have them because the SQL standard actually assigns a distinct
meaning to a primary key.  (It's the default foreign key reference
column(s) for the table --- and in that context it's clear that
There Can Be Only One.)
        regards, tom lane


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

Предыдущее
От: David Fetter
Дата:
Сообщение: Re: [PATCHES] WITH RECUSIVE patches 0717
Следующее
От: David Fetter
Дата:
Сообщение: Re: [PATCHES] WITH RECUSIVE patches 0717