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

Function postgresEndForeignModify

contrib/postgres_fdw/postgres_fdw.c:2116–2128  ·  view source on GitHub ↗

* postgresEndForeignModify * Finish an insert/update/delete operation on a foreign table */

Source from the content-addressed store, hash-verified

2114 * Finish an insert/update/delete operation on a foreign table
2115 */
2116static void
2117postgresEndForeignModify(EState *estate,
2118 ResultRelInfo *resultRelInfo)
2119{
2120 PgFdwModifyState *fmstate = (PgFdwModifyState *) resultRelInfo->ri_FdwState;
2121
2122 /* If fmstate is NULL, we are in EXPLAIN; nothing to do */
2123 if (fmstate == NULL)
2124 return;
2125
2126 /* Destroy the execution state */
2127 finish_foreign_modify(fmstate);
2128}
2129
2130/*
2131 * postgresBeginForeignInsert

Callers

nothing calls this directly

Calls 1

finish_foreign_modifyFunction · 0.85

Tested by

no test coverage detected