[#3375] Add support for PostgreSQL table-valued functions