|
8 | 8 | *
|
9 | 9 | *
|
10 | 10 | * IDENTIFICATION
|
11 |
| - * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.362 2003/09/02 19:04:12 tgl Exp $ |
| 11 | + * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.363 2003/09/14 00:03:32 tgl Exp $ |
12 | 12 | *
|
13 | 13 | * NOTES
|
14 | 14 | * this is the "main" module of the postgres backend and
|
@@ -1753,17 +1753,18 @@ finish_xact_command(void)
|
1753 | 1753 | /* Cancel any active statement timeout before committing */
|
1754 | 1754 | disable_sig_alarm(true);
|
1755 | 1755 |
|
1756 |
| -#ifdefMEMORY_CONTEXT_CHECKING |
1757 |
| -/* Check memory before committing (since commit discards much) */ |
1758 |
| -MemoryContextCheck(TopMemoryContext); |
1759 |
| -#endif |
1760 |
| - |
1761 | 1756 | /* Now commit the command */
|
1762 | 1757 | ereport(DEBUG3,
|
1763 | 1758 | (errmsg_internal("CommitTransactionCommand")));
|
1764 | 1759 |
|
1765 | 1760 | CommitTransactionCommand();
|
1766 | 1761 |
|
| 1762 | +#ifdefMEMORY_CONTEXT_CHECKING |
| 1763 | +/* Check all memory contexts that weren't freed during commit */ |
| 1764 | +/* (those that were, were checked before being deleted) */ |
| 1765 | +MemoryContextCheck(TopMemoryContext); |
| 1766 | +#endif |
| 1767 | + |
1767 | 1768 | #ifdefSHOW_MEMORY_STATS
|
1768 | 1769 | /* Print mem stats after each commit for leak tracking */
|
1769 | 1770 | if (ShowStats)
|
@@ -2657,7 +2658,7 @@ PostgresMain(int argc, char *argv[], const char *username)
|
2657 | 2658 | if (!IsUnderPostmaster)
|
2658 | 2659 | {
|
2659 | 2660 | puts("\nPOSTGRES backend interactive interface ");
|
2660 |
| -puts("$Revision: 1.362 $ $Date: 2003/09/02 19:04:12 $\n"); |
| 2661 | +puts("$Revision: 1.363 $ $Date: 2003/09/14 00:03:32 $\n"); |
2661 | 2662 | }
|
2662 | 2663 |
|
2663 | 2664 | /*
|
|