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)
commit6f2d77521878bafe999768789ca318cb8a4e9830
tree3f40017ec19e1e036690dbdbe0e7317dde8638e3
parent6a928e11fa1ca59f17940a698fdf081073a959f3
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