title: inserting custom type array into table column in postgresql-9.4?
body: <p>I have a custom type "nameage" and a table "namesages".</p>
  
  <pre><code>CREATE TYPE nameage AS(
  name_ varchar(50),
  age smallint 
  );
  CREATE TABLE namesages(
  id serial,
  namesandages nameage[]
  );
  
  INSERT INTO namesages(namesandages) VALUES(ARRAY[['john', 24],['david', 38]]::nameage[]);
  </code></pre>
  
  <p>Why does this query give error?;</p>
  
  <pre><code>ERROR:  malformed record literal: "john"
  LINE 1: insert into namesages(namesandages) values(ARRAY[['john', 24...
                                                            ^
  DETAIL:  Missing left parenthesis.
  ********** Error **********
  </code></pre>