title: size/length limitation of array type in PostgreSQL
body: <p>I'm working on a web project with PostgreSQL as a databases. I'm trying to build a structure of the web's databases that include a vector space model table.
  I created a table with attribute <code>terms</code> and <code>docId[]</code> where <code>docId</code> is the document ID of the term. Type of the <code>docId</code> is <code>integer[]</code>. So I can input a term with the document list that include the term in one single array. But the docId's array of term may contain a lot of entries.</p>
  <p>So my question is: what is the max size of a 1-dimension array in Postgres?</p>