Own Postgres Type as Alias Array
<p>I want to create a custom type that is an alias for int[4].</p>

<p>I tried the following statements:</p>

<pre><code>create type rect as int[4];
</code></pre>

<blockquote>
  <p>Syntax error near "int"</p>
</blockquote>

<pre><code>create type rect as (int[4]);
</code></pre>

<blockquote>
  <p>Syntax error near [</p>
</blockquote>

<p>In the documentation (<a href="https://www.postgresql.org/docs/9.2/static/sql-createtype.html" rel="nofollow">https://www.postgresql.org/docs/9.2/static/sql-createtype.html</a>) i also couldn't find anything about creating "alias" data types.</p>

<p>Whats the correct syntax here?
I am running Postgres 9.6beta4</p>