When a function not returning RECORD has a single OUT parameter, use
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 6 Oct 2005 19:51:16 +0000 (19:51 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 6 Oct 2005 19:51:16 +0000 (19:51 +0000)
commit3a2a705fc3ee46bbdc9a41bdfa9e0d20bdbfe0a2
treef71bca62e7f918d9a10c013fd0d9dde95c3f2b03
parentdd605749117fb676413f3995a34934953ab7304a
When a function not returning RECORD has a single OUT parameter, use
the parameter's name (if any) as the default column name for SELECT FROM
the function, rather than the function name as previously.  I still think
this is a bad idea, but I lost the argument.  Force decompilation of
function RTEs to specify full aliases always, to reduce the odds of this
decision breaking dumped views.
src/backend/parser/parse_relation.c
src/backend/utils/adt/ruleutils.c
src/backend/utils/fmgr/funcapi.c
src/include/funcapi.h
src/test/regress/expected/plpgsql.out
src/test/regress/expected/rangefuncs.out