Add a relkind field to RangeTblEntry to avoid some syscache lookups.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: bdca82f44d0e0168dece56cbd53b54ba142f328f
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2011-02-23T00:24:40Z
Releases: 9.1.0
Add a relkind field to RangeTblEntry to avoid some syscache lookups.

The recent additions for FDW support required checking foreign-table-ness
in several places in the parse/plan chain.  While it's not clear whether
that would really result in a noticeable slowdown, it seems best to avoid
any performance risk by keeping a copy of the relation's relkind in
RangeTblEntry.  That might have some other uses later, anyway.
Per discussion.

Files