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

Function exec_stmt_commit

src/pl/plpgsql/src/pl_exec.c:4891–4908  ·  view source on GitHub ↗

* exec_stmt_commit * * Commit the transaction. */

Source from the content-addressed store, hash-verified

4889 * Commit the transaction.
4890 */
4891static int
4892exec_stmt_commit(PLpgSQL_execstate *estate, PLpgSQL_stmt_commit *stmt)
4893{
4894 if (stmt->chain)
4895 SPI_commit_and_chain();
4896 else
4897 SPI_commit();
4898
4899 /*
4900 * We need to build new simple-expression infrastructure, since the old
4901 * data structures are gone.
4902 */
4903 estate->simple_eval_estate = NULL;
4904 estate->simple_eval_resowner = NULL;
4905 plpgsql_create_econtext(estate);
4906
4907 return PLPGSQL_RC_OK;
4908}
4909
4910/*
4911 * exec_stmt_rollback

Callers 1

exec_stmtsFunction · 0.85

Calls 3

SPI_commit_and_chainFunction · 0.85
SPI_commitFunction · 0.85
plpgsql_create_econtextFunction · 0.85

Tested by

no test coverage detected