diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2013-03-06 23:47:38 -0500 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2013-03-06 23:48:09 -0500 |
| commit | 1908abc4a37d397356c9cdf0fd31c33a86281d63 (patch) | |
| tree | 607be9f8752401246ad57e8b3371e62cf6120180 /src/include/foreign/fdwapi.h | |
| parent | 97951139164055d6bae5aae7ea058c28e1462253 (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/include/foreign/fdwapi.h')
| -rw-r--r-- | src/include/foreign/fdwapi.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/foreign/fdwapi.h b/src/include/foreign/fdwapi.h index 13dcbfdf8c7..562d5412df7 100644 --- a/src/include/foreign/fdwapi.h +++ b/src/include/foreign/fdwapi.h @@ -96,5 +96,6 @@ typedef struct FdwRoutine /* Functions in foreign/foreign.c */ extern FdwRoutine *GetFdwRoutine(Oid fdwhandler); extern FdwRoutine *GetFdwRoutineByRelId(Oid relid); +extern FdwRoutine *GetFdwRoutineForRelation(Relation relation, bool makecopy); #endif /* FDWAPI_H */ |
