Re: Custom types and arrays - Mailing list pgsql-general

From Joe Conway
Subject Re: Custom types and arrays
Date
Msg-id 3FA5BE71.9080909@joeconway.com
Whole thread Raw
In response to Re: Custom types and arrays  ("mlunnon @ RWA" <mlunnon@rwa-net.co.uk>)
List 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


pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: AS operator and subselect result names: PostgreSQL vs. Oracle
Next
From: Ron St-Pierre
Date:
Subject: Re: Constraint Problem