As a final note, it worked fine with a custom data type! :-) No problem returning values (yet)
pgsql-general by date:
Соглашаюсь с условиями обработки персональных данных