Skip site navigation (1) Skip section navigation (2)

pgsql: Repair bug that allowed RevalidateCachedPlan to attempt to

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Repair bug that allowed RevalidateCachedPlan to attempt to
Date: 2007-11-30 18:38:34
Message-ID: 20071130183834.C0D427540F0@cvs.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Log Message:
-----------
Repair bug that allowed RevalidateCachedPlan to attempt to rebuild a cached
plan before the effects of DDL executed in an immediately prior SPI operation
had been absorbed.  Per report from Chris Wood.

This patch has an unpleasant side effect of causing the number of
CommandCounterIncrement()s done by a typical plpgsql function to
approximately double.  Amelioration of the consequences of that
will be undertaken in a separate patch.

Modified Files:
--------------
    pgsql/src/backend/executor:
        spi.c (r1.184 -> r1.185)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/executor/spi.c?r1=1.184&r2=1.185)
    pgsql/src/test/regress/expected:
        plancache.out (r1.5 -> r1.6)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/test/regress/expected/plancache.out?r1=1.5&r2=1.6)
    pgsql/src/test/regress/sql:
        plancache.sql (r1.5 -> r1.6)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/test/regress/sql/plancache.sql?r1=1.5&r2=1.6)

pgsql-committers by date

Next:From: Tom LaneDate: 2007-11-30 21:22:54
Subject: pgsql: Avoid incrementing the CommandCounter when
Previous:From: Magnus HaganderDate: 2007-11-30 16:21:53
Subject: Re: pgsql: Use _dosmaperr() to deal with errors opening files in

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group