* postgresEndForeignInsert * Finish an insert operation on a foreign table */
| 2263 | * Finish an insert operation on a foreign table |
| 2264 | */ |
| 2265 | static void |
| 2266 | postgresEndForeignInsert(EState *estate, |
| 2267 | ResultRelInfo *resultRelInfo) |
| 2268 | { |
| 2269 | PgFdwModifyState *fmstate = (PgFdwModifyState *) resultRelInfo->ri_FdwState; |
| 2270 | |
| 2271 | Assert(fmstate != NULL); |
| 2272 | |
| 2273 | /* |
| 2274 | * If the fmstate has aux_fmstate set, get the aux_fmstate (see |
| 2275 | * postgresBeginForeignInsert()) |
| 2276 | */ |
| 2277 | if (fmstate->aux_fmstate) |
| 2278 | fmstate = fmstate->aux_fmstate; |
| 2279 | |
| 2280 | /* Destroy the execution state */ |
| 2281 | finish_foreign_modify(fmstate); |
| 2282 | } |
| 2283 | |
| 2284 | /* |
| 2285 | * postgresIsForeignRelUpdatable |
nothing calls this directly
no test coverage detected