Fix missing outfuncs.c support for IncrementalSortPath.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 30 Nov 2020 21:32:56 +0000 (16:32 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 30 Nov 2020 21:33:09 +0000 (16:33 -0500)
commit8286223f3d820c39f2d5f14222f7ccde53bdf502
treea0d6fcd77b4707780c567febb16b603fc6677e19
parent58ebe967f8a1e34a824d6a0a35728027272041c6
Fix missing outfuncs.c support for IncrementalSortPath.

For debugging purposes, Path nodes are supposed to have outfuncs
support, but this was overlooked in the original incremental sort patch.

While at it, clean up a couple other minor oversights, as well as
bizarre choice of return type for create_incremental_sort_path().
(All the existing callers just cast it to "Path *" immediately, so
they don't care, but some future caller might care.)

outfuncs.c fix by Zhijie Hou, the rest by me

Discussion: https://postgr.es/m/324c4d81d8134117972a5b1f6cdf9560@G08CNEXMBPEKD05.g08.fujitsu.local
src/backend/nodes/outfuncs.c
src/backend/optimizer/README
src/backend/optimizer/util/pathnode.c
src/include/nodes/pathnodes.h
src/include/optimizer/pathnode.h