Postgres Create View With Record Type Function
问题 I have this complex query with a user defined function conta_relatos() running very well as a select statement. But it doesn't work when I try to create a view with the same instructions. Postgres is telling me that the column "conta_relatos" has pseudo-type record. This function, conta_relatos() returns a record type variable. Addition by Editor: The return type is a well known composite type as defined in the preceding question: Postgres Function End Loop and return Error Below is the query