diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2015-11-15 14:41:09 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2015-11-15 14:41:09 -0500 |
commit | 0489a048d3914e4d5f89c91ac604350b9392e6fa (patch) | |
tree | 9af6d9d174f416b6f0b214bfa63b5411a6a127a0 /src/backend/utils/adt/array_userfuncs.c | |
parent | fae58d5bede8b5bf3dd17381e7f6b73c1772577f (diff) | |
download | postgresql-0489a048d3914e4d5f89c91ac604350b9392e6fa.tar.gz postgresql-0489a048d3914e4d5f89c91ac604350b9392e6fa.zip |
Fix ruleutils.c's dumping of whole-row Vars in ROW() and VALUES() contexts.
Normally ruleutils prints a whole-row Var as "foo.*". We already knew that
that doesn't work at top level of a SELECT list, because the parser would
treat the "*" as a directive to expand the reference into separate columns,
not a whole-row Var. However, Joshua Yanovski points out in bug #13776
that the same thing happens at top level of a ROW() construct; and some
nosing around in the parser shows that the same is true in VALUES().
Hence, apply the same workaround already devised for the SELECT-list case,
namely to add a forced cast to the appropriate rowtype in these cases.
(The alternative of just printing "foo" was rejected because it is
difficult to avoid ambiguity against plain columns named "foo".)
Back-patch to all supported branches.
Diffstat (limited to 'src/backend/utils/adt/array_userfuncs.c')
0 files changed, 0 insertions, 0 deletions