title: Combining multiple SELECT INTO results into one variable
body: <p>The method I am using may not be efficient (or possible), if so please let me know.
  I am trying to use <code>SELECT INTO</code> to select two values and then attach them to a variable (v1) which will be returned by the function as one cell.  Inserting <code>UNION ALL</code> between the two <code>SELECT INTO</code> statements results in an <code>ERROR: syntax error at or near "UNION"</code></p>
  
  <p><strong>EDIT</strong> -  the function provides two unique values (not null) which are specified for these two SELECT INTO statements</p>
  
  <p><strong>desired output:</strong></p>
  
  <pre><code>    v1             v2      v3    etc.
  2678, 2987         
  </code></pre>
  
  <p><strong>excerpt from function:</strong></p>
  
  <pre><code>SELECT value
      INTO v1
      FROM table
      WHERE year &lt;= parameteryear;
  
  SELECT value
      INTO v1
      FROM table    
      WHERE yearinteger &gt;= parameteryear;
  
  data := v1;
  RETURN NEXT;
  END;
  $$ LANGUAGE plpgsql;
  </code></pre>