Hi all,

I was fidding around in the backend and defined SHOW_MEMORY_STATS. With
this defined, we refer to the variable ShowStats which no longer exists
AFAICT (when did it?).

Patch simply removed the reference.

Thanks,

Gavin
Index: src/backend/tcop/postgres.c
===================================================================
RCS file: /usr/local/cvsroot/pgsql/src/backend/tcop/postgres.c,v
retrieving revision 1.518
diff -c -p -r1.518 postgres.c
*** src/backend/tcop/postgres.c 21 Nov 2006 20:59:52 -0000      1.518
--- src/backend/tcop/postgres.c 8 Dec 2006 01:35:12 -0000
*************** finish_xact_command(void)
*** 2233,2240 ****
  
  #ifdef SHOW_MEMORY_STATS
                /* Print mem stats after each commit for leak tracking */
!               if (ShowStats)
!                       MemoryContextStats(TopMemoryContext);
  #endif
  
                xact_started = false;
--- 2233,2239 ----
  
  #ifdef SHOW_MEMORY_STATS
                /* Print mem stats after each commit for leak tracking */
!               MemoryContextStats(TopMemoryContext);
  #endif
  
                xact_started = false;
---------------------------(end of broadcast)---------------------------
TIP 7: You can help support the PostgreSQL project by donating at

                http://www.postgresql.org/about/donate

Reply via email to