Add proper regression test for the recent SRFs-in-pathkeys problem.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 4 Aug 2022 15:11:22 +0000 (11:11 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 4 Aug 2022 15:11:22 +0000 (11:11 -0400)
commit8d38ccafca9382d79eee4badfa11b1114475622d
treed36cf2bf21332d0141122a0848b9599f690012c2
parentda4ed7588132db44ab11bf52bad0472eb0c868e4
Add proper regression test for the recent SRFs-in-pathkeys problem.

Remove the test case added by commit fac1b470a, which never actually
worked to expose the problem it claimed to test.  Replace it with
a case that does expose the problem, and also covers the SRF-not-
at-the-top deficiency repaired in 1aa8dad41.

Richard Guo, with some editorialization by me

Discussion: https://postgr.es/m/17564-c7472c2f90ef2da3@postgresql.org
src/test/regress/expected/incremental_sort.out
src/test/regress/expected/select_parallel.out
src/test/regress/sql/incremental_sort.sql
src/test/regress/sql/select_parallel.sql