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:34 +0000 (17:08 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 26 Jan 2006 17:08:34 +0000 (17:08 +0000)
commit71ccff99b5bfe2bf7a55735c140b45ed42f8339b
tree86c0da09b40bb77bcfa01a69f7e651cd8b07b181
parent3d1102c38ef818be267566a1c6ad170e221a7d20
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