summaryrefslogtreecommitdiff
path: root/src/backend/commands
diff options
context:
space:
mode:
authorTom Lane2013-03-07 04:47:38 +0000
committerTom Lane2013-03-07 04:48:09 +0000
commit1908abc4a37d397356c9cdf0fd31c33a86281d63 (patch)
tree607be9f8752401246ad57e8b3371e62cf6120180 /src/backend/commands
parent97951139164055d6bae5aae7ea058c28e1462253 (diff)
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.
Diffstat (limited to 'src/backend/commands')
-rw-r--r--src/backend/commands/analyze.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/commands/analyze.c b/src/backend/commands/analyze.c
index ad9c911542d..d6d20fde9af 100644
--- a/src/backend/commands/analyze.c
+++ b/src/backend/commands/analyze.c
@@ -227,7 +227,7 @@ analyze_rel(Oid relid, VacuumStmt *vacstmt, BufferAccessStrategy bstrategy)
FdwRoutine *fdwroutine;
bool ok = false;
- fdwroutine = GetFdwRoutineByRelId(RelationGetRelid(onerel));
+ fdwroutine = GetFdwRoutineForRelation(onerel, false);
if (fdwroutine->AnalyzeForeignTable != NULL)
ok = fdwroutine->AnalyzeForeignTable(onerel,