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

pgsql: Repair bug #2839: the various ExecReScan functions need to reset

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Repair bug #2839: the various ExecReScan functions need to reset
Date: 2006-12-26 19:27:10
Message-ID: 20061226192710.8FB679FA1DA@postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Log Message:
-----------
Repair bug #2839: the various ExecReScan functions need to reset
ps_TupFromTlist in plan nodes that make use of it.  This was being done
correctly in join nodes and Result nodes but not in any relation-scan nodes.
Bug would lead to bogus results if a set-returning function appeared in the
targetlist of a subquery that could be rescanned after partial execution,
for example a subquery within EXISTS().  Bug has been around forever :-(
... surprising it wasn't reported before.

Tags:
----
REL8_0_STABLE

Modified Files:
--------------
    pgsql/src/backend/executor:
        nodeFunctionscan.c (r1.29 -> r1.29.4.1)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/executor/nodeFunctionscan.c.diff?r1=1.29&r2=1.29.4.1)
        nodeIndexscan.c (r1.99.4.1 -> r1.99.4.2)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/executor/nodeIndexscan.c.diff?r1=1.99.4.1&r2=1.99.4.2)
        nodeResult.c (r1.29 -> r1.29.4.1)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/executor/nodeResult.c.diff?r1=1.29&r2=1.29.4.1)
        nodeSeqscan.c (r1.51 -> r1.51.4.1)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/executor/nodeSeqscan.c.diff?r1=1.51&r2=1.51.4.1)
        nodeSubqueryscan.c (r1.25 -> r1.25.4.1)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/executor/nodeSubqueryscan.c.diff?r1=1.25&r2=1.25.4.1)
        nodeTidscan.c (r1.41 -> r1.41.4.1)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/executor/nodeTidscan.c.diff?r1=1.41&r2=1.41.4.1)

pgsql-committers by date

Next:From: Tom LaneDate: 2006-12-26 19:27:20
Subject: pgsql: Repair bug #2839: the various ExecReScan functions need to reset
Previous:From: Tom LaneDate: 2006-12-26 19:27:04
Subject: pgsql: Repair bug #2839: the various ExecReScan functions need to reset

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