pgsql: Fix list-munging bug that broke SQL function result coercions.

2020-10-19 Thread Tom Lane
Fix list-munging bug that broke SQL function result coercions. Since commit 913bbd88d, check_sql_fn_retval() can either insert type coercion steps in-line in the Query that produces the SQL function's results, or generate a new top-level Query to perform the coercions, if modifying the Query's out

pgsql: Fix list-munging bug that broke SQL function result coercions.

2020-10-19 Thread Tom Lane
Fix list-munging bug that broke SQL function result coercions. Since commit 913bbd88d, check_sql_fn_retval() can either insert type coercion steps in-line in the Query that produces the SQL function's results, or generate a new top-level Query to perform the coercions, if modifying the Query's out