I have this function in PostgreSQL, but I don’t know how to return the result of the query: But I don’t know how to return the result of the query inside the PostgreSQL function. I found that the return type should be SETOF RECORD, right? But the return command is not right. What is the right way to do this?