Return multiple columns and rows from a function PostgreSQL instead of record

Functions returning a table (or setof) should be used in the FROM clause:

select * 
from brand_hierarchy(1234)

Leave a Comment