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

Function finish_xact_command

src/backend/tcop/postgres.c:3580–3603  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3578}
3579
3580static void
3581finish_xact_command(void)
3582{
3583 /* cancel active statement timeout after each command */
3584 disable_statement_timeout();
3585
3586 if (xact_started)
3587 {
3588 CommitTransactionCommand();
3589
3590#ifdef MEMORY_CONTEXT_CHECKING
3591 /* Check all memory contexts that weren't freed during commit */
3592 /* (those that were, were checked before being deleted) */
3593 MemoryContextCheck(TopMemoryContext);
3594#endif
3595
3596#ifdef SHOW_MEMORY_STATS
3597 /* Print mem stats after each commit for leak tracking */
3598 MemoryContextStats(TopMemoryContext);
3599#endif
3600
3601 xact_started = false;
3602 }
3603}
3604
3605
3606/*

Callers 5

exec_mpp_queryFunction · 0.85
restore_guc_to_QEFunction · 0.85
exec_simple_queryFunction · 0.85
exec_execute_messageFunction · 0.85
PostgresMainFunction · 0.85

Calls 4

CommitTransactionCommandFunction · 0.85
MemoryContextCheckFunction · 0.85
MemoryContextStatsFunction · 0.85

Tested by

no test coverage detected