Dept of second thoughts: keep aliasp_item in sync with tlistitem.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: d76886c2d33123299ce7c8255a71e39b9e53711b
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2017-10-27T22:16:24Z
Releases: 11.0
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.

Files

PathChange+/−
src/backend/parser/parse_relation.c modified +2 −1