OSDN Git Service

Fix oversight in recent changes to enable the 'physical tlist'
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 19 Oct 2005 17:31:20 +0000 (17:31 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 19 Oct 2005 17:31:20 +0000 (17:31 +0000)
commit32fcfcdbd66368c51c5561329d2a003eaff1fd64
tree1ef12dc3fdd56e8e4c45b66312a51068f158b9a5
parentb33a73226487ac1ea045c6e52b4a22d1451d0895
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.
src/backend/optimizer/plan/createplan.c