Re: cmin increments by 2 except in 7.4?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Michael Fuhr <mike(at)fuhr(dot)org>
Cc: pgsql-general(at)postgresql(dot)org, Neil Conway <neilc(at)samurai(dot)com>
Subject: Re: cmin increments by 2 except in 7.4?
Date: 2005-02-01 06:53:55
Message-ID: 10942.1107240835@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Michael Fuhr <mike(at)fuhr(dot)org> writes:
> I've noticed that in PostgreSQL 7.4, successive commands in a
> transaction get cmin values that increment by 1, but in other
> versions cmin increments by 2. Example:

Not sure about pre-7.4, but 8.0 is doing this because of a faulty
translation of list-munging stuff. PortalRunMulti contains

/*
* 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?

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Pritesh Shah 2005-02-01 07:11:06 dumping and restoring user information.
Previous Message Michael Fuhr 2005-02-01 06:23:04 cmin increments by 2 except in 7.4?