pgsql/src/backend/optimizer/plan (setrefs.c)

From: Tom Lane <tgl>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql/src/backend/optimizer/plan (setrefs.c)
Date: 2000-06-04 20:50:50
Message-ID: 200006042050.QAA64450@hub.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Date: Sunday, June 4, 2000 @ 16:50:50
Author: tgl

Update of /home/projects/pgsql/cvsroot/pgsql/src/backend/optimizer/plan
from hub.org:/home/projects/pgsql/tmp/cvs-serv64386

Modified Files:
setrefs.c

----------------------------- Log Message -----------------------------

Repair bug reported by ldm(at)apartia(dot)com: Append nodes, which don't
actually use their targetlist, are given a targetlist that is just a
pointer to the first appended plan's targetlist. This is OK, but what
is not OK is that any sub-select expressions in said tlist were being
entered in the subPlan lists of both the Append and the first appended
plan. That led to two startup and two shutdown calls for the same
plan node at exec time, which led to crashes. Fix is to not generate
a list of subPlans for an Append node. Same problem and fix apply
to other node types that don't have a real, functioning targetlist:
Material, Sort, Unique, Hash.

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2000-06-04 22:04:33 pgsql/src/backend/commands (command.c)
Previous Message Bruce Momjian - CVS 2000-06-04 17:52:54 pgsql/src/test/regress/expected (select_into.out)