figure out how to support all of PG's bizarro SETOF, RECORD, etc. types w/ emphasis on JSON fucntions · Issue #3566 · sqlalchemy/sqlalchemy · GitHub
![problem creating PLpgSQL function which accepts ARRAY as INPUT and returns SETOF RECORD from the table - Stack Overflow problem creating PLpgSQL function which accepts ARRAY as INPUT and returns SETOF RECORD from the table - Stack Overflow](https://i.stack.imgur.com/ZaUPS.jpg)
problem creating PLpgSQL function which accepts ARRAY as INPUT and returns SETOF RECORD from the table - Stack Overflow
![stored procedures - PostgreSQL Error: set-valued function called in context that connot accept a set - Stack Overflow stored procedures - PostgreSQL Error: set-valued function called in context that connot accept a set - Stack Overflow](https://i.stack.imgur.com/bgiYg.png)