Re: Shorthand for foreign key indices - Mailing list pgsql-general

From Brendan Jurd
Subject Re: Shorthand for foreign key indices
Date
Msg-id 37ed240d05050911035bb92079@mail.gmail.com
Whole thread Raw
In response to Re: Shorthand for foreign key indices  ("John D. Burger" <john@mitre.org>)
List 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 by date:

Previous
From: Scott Marlowe
Date:
Subject: Re: Shorthand for foreign key indices
Next
From: Peter Fein
Date:
Subject: Re: Function to return number of words in a string?