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:20
Message-ID: 20061226192720.5D5969FA2D4@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:
----
REL7_4_STABLE

Modified Files:
--------------
    pgsql/src/backend/executor:
        nodeFunctionscan.c (r1.22 -> r1.22.2.1)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/executor/nodeFunctionscan.c.diff?r1=1.22&r2=1.22.2.1)
        nodeIndexscan.c (r1.84.2.2 -> r1.84.2.3)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/executor/nodeIndexscan.c.diff?r1=1.84.2.2&r2=1.84.2.3)
        nodeResult.c (r1.26 -> r1.26.4.1)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/executor/nodeResult.c.diff?r1=1.26&r2=1.26.4.1)
        nodeSeqscan.c (r1.46 -> r1.46.4.1)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/executor/nodeSeqscan.c.diff?r1=1.46&r2=1.46.4.1)
        nodeSubqueryscan.c (r1.22 -> r1.22.2.1)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/executor/nodeSubqueryscan.c.diff?r1=1.22&r2=1.22.2.1)
        nodeTidscan.c (r1.35 -> r1.35.2.1)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/executor/nodeTidscan.c.diff?r1=1.35&r2=1.35.2.1)

pgsql-committers by date

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

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