title: SELECT FROM a function returning a record with arbirary number of columns
body: <p>I'm using PostgreSQL database.</p>
  
  <p>I've a my plpgsql <code>FUNCTION</code> that returns a single <code>record</code> with an arbitrary number of columns.<br>
  Due to this arbitrariness I would need to use something like:</p>
  
  <pre><code>SELECT * FROM my_function(97)
  </code></pre>
  
  <p>But this doesn't work as Postgres gives me the following error:</p>
  
  <blockquote>
    <p>a column definition list is required for functions returning "record"</p>
  </blockquote>
  
  <p>But if I do:</p>
  
  <pre><code>SELECT my_function(97)
  </code></pre>
  
  <p>I can see the expected result but encapsulated in a single column.</p>
  
  <p>Is there a way to fetch the expected result as a set of columns as intended by the function and not a single column encapsulating all of them?</p>