[#3376] Add support for PostgreSQL SETOF functions