]> granicus.if.org Git - postgresql/commit
Fix display of whole-row Var appearing at the top level of a SELECT list.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 26 Jan 2006 17:08:26 +0000 (17:08 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 26 Jan 2006 17:08:26 +0000 (17:08 +0000)
commit108a2e51c97549f3f05563ef229a44078d2ecaaf
tree06b1fccba5c7d04df9d546543c3ceaeb05b28458
parentf31a58481c209d70f6c1ff7123fe77071941afe9
Fix display of whole-row Var appearing at the top level of a SELECT list.
While we normally prefer the notation "foo.*" for a whole-row Var, that does
not work at SELECT top level, because in that context the parser will assume
that what is wanted is to expand the "*" into a list of separate target
columns, yielding behavior different from a whole-row Var.  We have to emit
just "foo" instead in that context.  Per report from Sokolov Yura.
src/backend/utils/adt/ruleutils.c