Re: Foreign Keys to Non-primary keys?

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Foreign Keys to Non-primary keys?
Дата
Msg-id Pine.BSF.4.21.0106210832560.3593-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на Foreign Keys to Non-primary keys?  (zilch@home.se)
Список pgsql-general
On Thu, 21 Jun 2001 zilch@home.se wrote:

>
> Is it possible to have a foreign key to a non-primary key (also
> meaning non-unique and therefore non-indexed) column i a table?

Generally no.  It's not allowed by the spec, so as of 7.1, we
prevent it. Admittedly, you could pull the rug out from underneath
it by dropping the index, though.


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Authentification
Следующее
От: "Thalis A. Kalfigopoulos"
Дата:
Сообщение: Re: aggregate function for median calculation