Search Postgresql Archives

Re: cmin increments by 2 except in 7.4?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Michael Fuhr <mike@xxxxxxxx> 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

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

               http://archives.postgresql.org

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux