Out of curiosity to see the performance of the query, since within the view that it is a virtual table it can be generated just like doing a function that returns a SETOF if it were a query of a table, if it were of several inner join then the function would be that it returns a table. Well I the last two and not views