pgsql: Fix failure with SQL-procedure polymorphic output arguments in v

2024-06-06 Thread Tom Lane
Fix failure with SQL-procedure polymorphic output arguments in v12. Before the v13-era commit 913bbd88d, check_sql_fn_retval fails to resolve polymorphic output types and then just throws up its hands and assumes the check will be made at runtime. I think that's true for ordinary functions return

pgsql: Fix failure with SQL-procedure polymorphic output arguments in v

2024-06-06 Thread Tom Lane
Fix failure with SQL-procedure polymorphic output arguments in v12. Before the v13-era commit 913bbd88d, check_sql_fn_retval fails to resolve polymorphic output types and then just throws up its hands and assumes the check will be made at runtime. I think that's true for ordinary functions return

pgsql: Fix failure with SQL-procedure polymorphic output arguments in v

2024-06-06 Thread Tom Lane
Fix failure with SQL-procedure polymorphic output arguments in v12. Before the v13-era commit 913bbd88d, check_sql_fn_retval fails to resolve polymorphic output types and then just throws up its hands and assumes the check will be made at runtime. I think that's true for ordinary functions return

pgsql: Fix failure with SQL-procedure polymorphic output arguments in v

2024-06-06 Thread Tom Lane
Fix failure with SQL-procedure polymorphic output arguments in v12. Before the v13-era commit 913bbd88d, check_sql_fn_retval fails to resolve polymorphic output types and then just throws up its hands and assumes the check will be made at runtime. I think that's true for ordinary functions return

pgsql: Fix failure with SQL-procedure polymorphic output arguments in v

2024-06-06 Thread Tom Lane
Fix failure with SQL-procedure polymorphic output arguments in v12. Before the v13-era commit 913bbd88d, check_sql_fn_retval fails to resolve polymorphic output types and then just throws up its hands and assumes the check will be made at runtime. I think that's true for ordinary functions return

pgsql: Fix failure with SQL-procedure polymorphic output arguments in v

2024-06-06 Thread Tom Lane
Fix failure with SQL-procedure polymorphic output arguments in v12. Before the v13-era commit 913bbd88d, check_sql_fn_retval fails to resolve polymorphic output types and then just throws up its hands and assumes the check will be made at runtime. I think that's true for ordinary functions return