title: Having a postgres function taking an argument and returning a table how to merge many such results into ingle table (SelectMany)?
body: <p>I want to do something like LINQ SelectMany in Postgres SQL. I have a function with a signature like this:</p>
  <pre><code>CREATE or REPLACE FUNCTION get_objects(id_in int) RETURNS TABLE (name varchar, id_out int)
  </code></pre>
  <p>Each call on it returns 200 rows.</p>
  <p>I have a select that returns a table of in_IDs. I want to call my function on each row of such a table and merge them into a single one. In other words, join many lists of rows into a single big table. How to do such a thing in Postgres SQL (not inside function loop)?</p>