Re: Shorthand for foreign key indices

Поиск
Список
Период
Сортировка
От Brendan Jurd
Тема Re: Shorthand for foreign key indices
Дата
Msg-id 37ed240d05050911035bb92079@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Shorthand for foreign key indices  ("John D. Burger" <john@mitre.org>)
Список pgsql-general
> I'm guessing now that we're just talking about a regular index on a
> column that happens to have a foreign key reference to another column.
> Is that the case?
>

That's true, but just as the query planner can use an index for WHERE
conditions, it can use an index for a join condition.  So if you've
got an index on your foreign key, the planner has the opportunity to
use the index any join operations across that foreign key.

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

Предыдущее
От: Scott Marlowe
Дата:
Сообщение: Re: Shorthand for foreign key indices
Следующее
От: Peter Fein
Дата:
Сообщение: Re: Function to return number of words in a string?