title: Function returning varius table types. pl/pgsql
body: <p>Is it possible to create a function in PostgreSQL with varying return type?<br>
  Example: Create function that gets data from table given as a argument and return it.</p>
  
  <pre><code>CREATE FUNCTION data_picker(tablename varchar) AS
  $$ SELECT * FROM $1 $$
  LANGUAGE SQL;
  </code></pre>