Probe y me da el siguiente error:
ERROR: a column definition list is required for functions returning "record"