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

Function GetFdwRoutine

src/backend/foreign/foreign.c:587–601  ·  view source on GitHub ↗

* GetFdwRoutine - call the specified foreign-data wrapper handler routine * to get its FdwRoutine struct. */

Source from the content-addressed store, hash-verified

585 * to get its FdwRoutine struct.
586 */
587FdwRoutine *
588GetFdwRoutine(Oid fdwhandler)
589{
590 Datum datum;
591 FdwRoutine *routine;
592
593 datum = OidFunctionCall0(fdwhandler);
594 routine = (FdwRoutine *) DatumGetPointer(datum);
595
596 if (routine == NULL || !IsA(routine, FdwRoutine))
597 elog(ERROR, "foreign-data wrapper handler function %u did not return an FdwRoutine struct",
598 fdwhandler);
599
600 return routine;
601}
602
603
604/*

Callers 2

ImportForeignSchemaFunction · 0.85
GetFdwRoutineByServerIdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected