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

Function finish_foreign_modify

contrib/postgres_fdw/postgres_fdw.c:4376–4387  ·  view source on GitHub ↗

* finish_foreign_modify * Release resources for a foreign insert/update/delete operation */

Source from the content-addressed store, hash-verified

4374 * Release resources for a foreign insert/update/delete operation
4375 */
4376static void
4377finish_foreign_modify(PgFdwModifyState *fmstate)
4378{
4379 Assert(fmstate != NULL);
4380
4381 /* If we created a prepared statement, destroy it */
4382 deallocate_query(fmstate);
4383
4384 /* Release remote connection */
4385 ReleaseConnection(fmstate->conn);
4386 fmstate->conn = NULL;
4387}
4388
4389/*
4390 * deallocate_query

Callers 2

postgresEndForeignModifyFunction · 0.85
postgresEndForeignInsertFunction · 0.85

Calls 2

deallocate_queryFunction · 0.85
ReleaseConnectionFunction · 0.85

Tested by

no test coverage detected