On Tue, 2005-02-01 at 01:53 -0500, Tom Lane wrote:
> /*
> * Increment command counter between queries, but not after the
> * last one.
> */
> if (planlist_item != NULL)
> CommandCounterIncrement();
>
> but planlist_item will *never* be NULL here. Should be testing
> lnext(planlist_item), I think. Neil?
Indeed :( One-liner attached, and applied to HEAD and REL8_0_STABLE.
-Neil