title: Store the result of an UPDATE with a RETURNING clause on PLPGSQL
body: <p>In a plpgsql function I need to do several checks, and return some values based on those checks.</p>
  
  <p>I can perform a <code>SELECT INTO v_variable column FROM table</code> but what I need to store is not the result of a <code>SELECT</code> rather a result of an <code>UPDATE table SET column = new_value RETURNING check</code></p>
  
  <p>Is there a way to store this check in a variable to later us it, or just an <code>OUT</code> variable so this value is returned by the function?</p>