MCPcopy Create free account
hub / github.com/apache/cloudberry / GetFdwRoutineByRelId

Function GetFdwRoutineByRelId

src/backend/foreign/foreign.c:672–682  ·  view source on GitHub ↗

* GetFdwRoutineByRelId - look up the handler of the foreign-data wrapper * for the given foreign table, and retrieve its FdwRoutine struct. */

Source from the content-addressed store, hash-verified

670 * for the given foreign table, and retrieve its FdwRoutine struct.
671 */
672FdwRoutine *
673GetFdwRoutineByRelId(Oid relid)
674{
675 Oid serverid;
676
677 /* Get server OID for the foreign table. */
678 serverid = GetForeignServerIdByRelId(relid);
679
680 /* Now retrieve server's FdwRoutine struct. */
681 return GetFdwRoutineByServerId(serverid);
682}
683
684/*
685 * GetFdwRoutineForRelation - look up the handler of the foreign-data wrapper

Callers 3

GetFdwRoutineForRelationFunction · 0.85
make_modifytableFunction · 0.85
select_rowmark_typeFunction · 0.85

Calls 2

GetFdwRoutineByServerIdFunction · 0.85

Tested by

no test coverage detected