mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
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.
This commit is contained in:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user