Re: Custom types and arrays

From: Joe Conway <mail(at)joeconway(dot)com>
To: "mlunnon (at) RWA" <mlunnon(at)rwa-net(dot)co(dot)uk>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-general(at)postgresql(dot)org
Subject: Re: Custom types and arrays
Date: 2003-11-03 02:33:21
Message-ID: 3FA5BE71.9080909@joeconway.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

mlunnon @ RWA wrote:
> Thanks for your reply tom. I'm sure it is not a mistype, I included the
> definition that I used in my script. Perhaps it is something to do with the
> cygwin installation of Postgres that I have i will try it on a Linux box.
>

The type you were referring to is a composite type:
CREATE TYPE TEST_TYPE AS (ID INTEGER, CODE VARCHAR(40));

The documentation wording could be improved (perhaps it should say
"user-defined *base* types?), but there is no support for arrays of
composite types -- or at least if there is, I've never seen it. I know
for sure that creation of a user defined composite type will not create
a corresponding array type.

Joe

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ron St-Pierre 2003-11-03 02:46:19 Re: Constraint Problem
Previous Message Tom Lane 2003-11-02 22:22:48 Re: PostgreSQL License Question