Index: src/backend/tcop/pquery.c
===================================================================
RCS file: /var/lib/cvs/pgsql/src/backend/tcop/pquery.c,v
retrieving revision 1.89
diff -c -r1.89 pquery.c
*** src/backend/tcop/pquery.c	31 Dec 2004 22:01:16 -0000	1.89
--- src/backend/tcop/pquery.c	1 Feb 2005 23:11:40 -0000
***************
*** 1033,1039 ****
  		 * Increment command counter between queries, but not after the
  		 * last one.
  		 */
! 		if (planlist_item != NULL)
  			CommandCounterIncrement();
  
  		/*
--- 1033,1039 ----
  		 * Increment command counter between queries, but not after the
  		 * last one.
  		 */
! 		if (lnext(planlist_item) != NULL)
  			CommandCounterIncrement();
  
  		/*
