É necessário retornar
table
Create or replace function withFunction()
returns table(phone1 text, phone2 text) as
então
select * from withFunction()
table
Create or replace function withFunction()
returns table(phone1 text, phone2 text) as
select * from withFunction()