* GetFdwRoutineByRelId - look up the handler of the foreign-data wrapper * for the given foreign table, and retrieve its FdwRoutine struct. */
| 670 | * for the given foreign table, and retrieve its FdwRoutine struct. |
| 671 | */ |
| 672 | FdwRoutine * |
| 673 | GetFdwRoutineByRelId(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 |
no test coverage detected