Simplify cost_incremental_sort a bit
authorTomas Vondra <[email protected]>
Fri, 1 May 2020 23:25:00 +0000 (01:25 +0200)
committerTomas Vondra <[email protected]>
Fri, 1 May 2020 23:33:51 +0000 (01:33 +0200)
commit60fbb4d762506c352c1af1229288a0753742cd95
tree67b7bdfa3d6d1dbe9ffcead6c1ea3c6002730d84
parent2e08d314ed07363636a5da65f2a3abf7135f8ba8
Simplify cost_incremental_sort a bit

Commit de0dc1a847 added code to cost_incremental_sort to handle varno 0.
Explicitly removing the RelabelType is not really necessary, because the
pull_varnos handles that just fine, which simplifies the code a bit.

Author: Richard Guo
Discussion: https://postgr.es/m/CAMbWs4_3_D2J5XxOuw68hvn0-gJsw9FXNSGcZka9aTymn9UJ8A%40mail.gmail.com
Discussion: https://postgr.es/m/20200411214639.GK2228%40telsasoft.com
src/backend/optimizer/path/costsize.c