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

From John D. Burger
Subject Re: Shorthand for foreign key indices
Date
Msg-id dbbc60f9cb5689925b4f02b1a919a2ad@mitre.org
Whole thread Raw
In response to Re: Shorthand for foreign key indices  ("Jim C. Nasby" <decibel@decibel.org>)
Responses Re: Shorthand for foreign key indices
Re: Shorthand for foreign key indices
List pgsql-general
>> 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



pgsql-general by date:

Previous
From: Ben
Date:
Subject: Re: Postgres and GnuPlot
Next
From: Scott Marlowe
Date:
Subject: Re: Shorthand for foreign key indices