Fix broken ruleutils support for function TRANSFORM clauses.
authorTom Lane <[email protected]>
Mon, 25 Jan 2021 18:03:12 +0000 (13:03 -0500)
committerTom Lane <[email protected]>
Mon, 25 Jan 2021 18:03:12 +0000 (13:03 -0500)
commit41309f716ef5dbe6c3399f448e25f0ec2d23fa3c
treeaef078cf5cd553a10ef8cb39fa50b5cbd3172e6d
parent9b1f8af47e359e3f17177a9c18b3750add407e03
Fix broken ruleutils support for function TRANSFORM clauses.

I chanced to notice that this dumped core due to a faulty Assert.
To add insult to injury, the output has been misformatted since v11.
Obviously we need some regression testing here.

Discussion: https://postgr.es/m/d1cc628c-3953-4209-957b-29427acc38c8@www.fastmail.com
contrib/hstore_plpython/expected/hstore_plpython.out
contrib/hstore_plpython/sql/hstore_plpython.sql
src/backend/utils/fmgr/funcapi.c