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

Function postgresExecForeignUpdate

contrib/postgres_fdw/postgres_fdw.c:2078–2091  ·  view source on GitHub ↗

* postgresExecForeignUpdate * Update one row in a foreign table */

Source from the content-addressed store, hash-verified

2076 * Update one row in a foreign table
2077 */
2078static TupleTableSlot *
2079postgresExecForeignUpdate(EState *estate,
2080 ResultRelInfo *resultRelInfo,
2081 TupleTableSlot *slot,
2082 TupleTableSlot *planSlot)
2083{
2084 TupleTableSlot **rslot;
2085 int numSlots = 1;
2086
2087 rslot = execute_foreign_modify(estate, resultRelInfo, CMD_UPDATE,
2088 &slot, &planSlot, &numSlots);
2089
2090 return rslot ? rslot[0] : NULL;
2091}
2092
2093/*
2094 * postgresExecForeignDelete

Callers

nothing calls this directly

Calls 1

execute_foreign_modifyFunction · 0.85

Tested by

no test coverage detected