Jeff, thank you for the time and suggestion. I'm also trying to use SETOF custom_type as a solution Oksana
pgsql-general by date:
Соглашаюсь с условиями обработки персональных данных