Search Postgresql Archives

Re: Shorthand for foreign key indices

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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.

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

               http://archives.postgresql.org


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux