pgsql: Fix oversight in recent changes to enable the 'physical tlist'

From: tgl(at)svr1(dot)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix oversight in recent changes to enable the 'physical tlist'
Date: 2005-10-19 17:31:21
Message-ID: 20051019173121.147F5DA58C@svr1.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Fix oversight in recent changes to enable the 'physical tlist'
optimization for subquery and function scan nodes: we can't just do it
unconditionally, we still have to check whether there is any need for
a whole-row Var. I had been thinking that these node types couldn't
have any system columns, which is true, but that loop is also checking
for attno zero, ie, whole-row Var. Fix comment to not be so misleading.
Per test case from Richard Huxton.

Modified Files:
--------------
pgsql/src/backend/optimizer/plan:
createplan.c (r1.201 -> r1.202)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/optimizer/plan/createplan.c.diff?r1=1.201&r2=1.202)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2005-10-19 18:18:33 pgsql: Ensure that the Datum generated from a whole-row Var contains
Previous Message User Am 2005-10-19 14:32:09 press - pr: Partial translation of the press release to Romanian.