]> granicus.if.org Git - postgresql/commit
Arrange to cache FdwRoutine structs in foreign tables' relcache entries.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 7 Mar 2013 04:47:38 +0000 (23:47 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 7 Mar 2013 04:48:09 +0000 (23:48 -0500)
commit1908abc4a37d397356c9cdf0fd31c33a86281d63
tree607be9f8752401246ad57e8b3371e62cf6120180
parent97951139164055d6bae5aae7ea058c28e1462253
Arrange to cache FdwRoutine structs in foreign tables' relcache entries.

This saves several catalog lookups per reference.  It's not all that
exciting right now, because we'd managed to minimize the number of places
that need to fetch the data; but the upcoming writable-foreign-tables patch
needs this info in a lot more places.
src/backend/commands/analyze.c
src/backend/executor/nodeForeignscan.c
src/backend/foreign/foreign.c
src/backend/optimizer/path/allpaths.c
src/backend/optimizer/util/plancat.c
src/backend/utils/cache/relcache.c
src/include/foreign/fdwapi.h
src/include/utils/rel.h