Re: Foreign keys and indexes

Поиск
Список
Период
Сортировка
От Richard Broersma Jr
Тема Re: Foreign keys and indexes
Дата
Msg-id 698551.87665.qm@web31807.mail.mud.yahoo.com
обсуждение исходный текст
Ответ на Foreign keys and indexes  (Marc Compte <mcompte@sigte.udg.es>)
Ответы Re: Foreign keys and indexes  (Marc Compte <mcompte@sigte.udg.es>)
Список pgsql-general
> Does PostgreSQL create an implicit index also for foreign keys? or must
> I create it explicitly?

No, you foreign keys are not automatically indexed.  They only way they would be is if the FK is
part of a composite unique or primary key.  So you will probably have to create your one indexes
on FKs.

Regards,
Richard Broersma Jr.


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

Предыдущее
От: Ranieri Mazili
Дата:
Сообщение: CREATE RULE with WHERE clause
Следующее
От: Ragnar
Дата:
Сообщение: Re: Foreign keys and indexes