| 3578 | } |
| 3579 | |
| 3580 | static void |
| 3581 | finish_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 | /* |
no test coverage detected