]> granicus.if.org Git - postgresql/commit
Dept of second thoughts: keep aliasp_item in sync with tlistitem.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 27 Oct 2017 22:16:25 +0000 (18:16 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 27 Oct 2017 22:16:25 +0000 (18:16 -0400)
commit1f81c2cd524e0c65a621d280255be559ab630e4a
tree0638160447b6b3c23260f93e6696fdac44caf612
parentacd3287e437eea6df51d7b0aaa2909efc7c9219e
Dept of second thoughts: keep aliasp_item in sync with tlistitem.

Commit d5b760ecb wasn't quite right, on second thought: if the
caller didn't ask for column names then it would happily emit
more Vars than if the caller did ask for column names.  This
is surely not a good idea.  Advance the aliasp_item whether or
not we're preparing a colnames list.
src/backend/parser/parse_relation.c