title: How to rewrite a Postgres function to return a scalar value and a table value (instead of a refcursor)?
body: <p>I have a function that returns two <code>OUT</code> parameters: one is a scalar value and the other is a <code>refcursor</code>.</p>
  <p>I don't want to use <code>refcursor</code> as <code>OUT</code> parameter, since it is not compatible with power builder. I need that function to return one scalar value and a table.</p>