[COMMITTERS] pgsql: Make setrefs.c match by ressortgroupref even for plain Vars.

2017-10-26 Thread Tom Lane
Make setrefs.c match by ressortgroupref even for plain Vars. Previously, we skipped using search_indexed_tlist_for_sortgroupref() if the tlist expression being sought in the child plan node was merely a Var. This is purely an optimization, based on the theory that search_indexed_tlist_for_var()

[COMMITTERS] pgsql: Make setrefs.c match by ressortgroupref even for plain Vars.

2017-10-26 Thread Tom Lane
Make setrefs.c match by ressortgroupref even for plain Vars. Previously, we skipped using search_indexed_tlist_for_sortgroupref() if the tlist expression being sought in the child plan node was merely a Var. This is purely an optimization, based on the theory that search_indexed_tlist_for_var()

[COMMITTERS] pgsql: Make setrefs.c match by ressortgroupref even for plain Vars.

2017-10-26 Thread Tom Lane
Make setrefs.c match by ressortgroupref even for plain Vars. Previously, we skipped using search_indexed_tlist_for_sortgroupref() if the tlist expression being sought in the child plan node was merely a Var. This is purely an optimization, based on the theory that search_indexed_tlist_for_var()