Search Postgresql Archives

Re: Shorthand for foreign key indices

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

 



By the way, I presume foreign key indices are used to check for
referential integrity on insert.  Can the query planner also use then
somehow?

It can use them the same way it can use any other index.

Hmm, I guess I thought that "foreign key indices" were some special kind of index. For instance, I thought that Postgresql might effectively pre-compute part of the information it needed to do a join on the two relevant columns.


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?

Thanks.

- John D. Burger
  MITRE



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