title: Loop over array dimension in plpgsql
body: <p>In plpgsql, I want to get the array contents one by one from a two dimension array.</p>
  
  <pre><code>DECLARE
    m varchar[];
    arr varchar[][] := array[['key1','val1'],['key2','val2']];
  BEGIN
    for m in select arr
    LOOP
      raise NOTICE '%',m;
    END LOOP;
  END;
  </code></pre>
  
  <p>But the above code returns:</p>
  
  <pre><code>{{key1,val1},{key2,val2}}
  </code></pre>
  
  <p>in one line. I want to be able to loop over and call another function which takes parameters like:</p>
  
  <pre><code>another_func(key1,val1)
  </code></pre>