Re: primary key and foreign key

Поиск
Список
Период
Сортировка
От Richard Broersma Jr
Тема Re: primary key and foreign key
Дата
Msg-id 219041.90797.qm@web31809.mail.mud.yahoo.com
обсуждение исходный текст
Ответ на primary key and foreign key  (Jessica Richard <rjessil@yahoo.com>)
Список pgsql-admin
--- Jessica Richard <rjessil@yahoo.com> wrote:

> Just want to be very clear that:
>
> 1. adding a primary key will have an implicit index automatically on the column(s).
>
> 2. Adding a foreign key will NOT have an index created automatically, it only does the
> referencing work. If an index is needed on the F-key column, it has to be created, right?

Correct.

Regards,
Richard Broersma Jr.


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

Предыдущее
От: Jessica Richard
Дата:
Сообщение: primary key and foreign key
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Localisation