Add proper regression test for the recent SRFs-in-pathkeys problem.

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

Commit: 8d38ccafca9382d79eee4badfa11b1114475622d
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2022-08-04T15:11:22Z
Releases: 13.8
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

Files

Discussion