How to create the value of `SETOF <sometype>` type by hand in PostgreSQL?
PostgreSQL has SETOF <sometype> type according to the doc and SETOF <sometype> type is used in a function as shown below: -- ↓ ↓ ↓ Here ↓ ↓ ↓ CREATE FUNCTION my_func() RETURNS SETOF <sometype> ... Now, I want to…