]> granicus.if.org Git - postgresql/commitdiff
Fix the build for when SHOW_MEMORY_STATS is defined. The reference to
authorNeil Conway <neilc@samurai.com>
Fri, 8 Dec 2006 02:15:07 +0000 (02:15 +0000)
committerNeil Conway <neilc@samurai.com>
Fri, 8 Dec 2006 02:15:07 +0000 (02:15 +0000)
the nonexistent ShowStats variable is simply removed, per Gavin Sherry.

src/backend/tcop/postgres.c

index 03a3eca6abd005aec643c559fa1fef05f6853a40..f4b5d59d83ea0e9fa9f9760b4d754b9fdc6427f3 100644 (file)
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.518 2006/11/21 20:59:52 tgl Exp $
+ *       $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.519 2006/12/08 02:15:07 neilc Exp $
  *
  * NOTES
  *       this is the "main" module of the postgres backend and
@@ -2233,8 +2233,7 @@ finish_xact_command(void)
 
 #ifdef SHOW_MEMORY_STATS
                /* Print mem stats after each commit for leak tracking */
-               if (ShowStats)
-                       MemoryContextStats(TopMemoryContext);
+               MemoryContextStats(TopMemoryContext);
 #endif
 
                xact_started = false;