arrays of user types. - Mailing list pgsql-general

From lord.zoltar@gmail.com
Subject arrays of user types.
Date
Msg-id 1161915797.582949.233510@k70g2000cwa.googlegroups.com
Whole thread Raw
Responses Re: arrays of user types.
List pgsql-general
Hello,
I'm a bit new to PostgreSQL, and I have a question about user-defined
types.
Is it possible to have an array of user-defined types?

Suppose the type looks like this:
CREATE TYPE part AS
   (id int2,
    count int2);

Now I want to have a column in a table that is a list of parts:

alter table items
add column part_list part[];

But when I try to execute this statement, I get the error that "part[]"
is not a defined type.
Is it not possible to have an array of user-defined types?


pgsql-general by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Mailing list problem?
Next
From: maa1666@yahoo.fr
Date:
Subject: How to know the type of an expression ?