title: How to send table to function as argument?
body: <p>How to send a table to function as argument?</p>
  
  <p>Need something like that:</p>
  
  <pre><code>CREATE OR REPLACE FUNCTION test(argTable TABLE(
          field1 integer,
          field1 integer,
          etc smallint
  ))
      RETURNS integer AS
  $BODY$
  </code></pre>
  
  <p>...
  Is it possible btw?</p>
  
  <p>UPD: I'm going to send a temp table to function so I suppose I need table structure declaration in arguments list.</p>