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

Function postgresEndForeignInsert

contrib/postgres_fdw/postgres_fdw.c:2265–2282  ·  view source on GitHub ↗

* postgresEndForeignInsert * Finish an insert operation on a foreign table */

Source from the content-addressed store, hash-verified

2263 * Finish an insert operation on a foreign table
2264 */
2265static void
2266postgresEndForeignInsert(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

Callers

nothing calls this directly

Calls 1

finish_foreign_modifyFunction · 0.85

Tested by

no test coverage detected