Re: UNIQUE INDEX and PRIMARY KEY

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: UNIQUE INDEX and PRIMARY KEY
Дата
Msg-id 12193.1192909444@sss.pgh.pa.us
обсуждение исходный текст
Ответ на UNIQUE INDEX and PRIMARY KEY  ("Kynn Jones" <kynnjo@gmail.com>)
Список pgsql-general
"Kynn Jones" <kynnjo@gmail.com> writes:
> In short, my question is: is there a way to designate a pre-existing
> UNIQUE INDEX (based on data contained in NOT NULL fields) as the basis
> for a table's PRIMARY KEY?

No.  If there were, that client software you mention would very likely
still get confused.  Both the SQL standard and a lot of code assume
that the constituents of a PRIMARY KEY are just-plain-columns.

            regards, tom lane

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

Предыдущее
От: "Kynn Jones"
Дата:
Сообщение: UNIQUE INDEX and PRIMARY KEY
Следующее
От: Rainer Bauer
Дата:
Сообщение: Re: 8.2.3: Server crashes on Windows using Eclipse/Junit