Re: composite data type question

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Jessica M Salmon <jmsalmon(at)fs(dot)fed(dot)us>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: composite data type question
Date: 2006-06-07 13:59:41
Message-ID: 20060607135941.GA91907@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Jun 06, 2006 at 11:40:05AM -0600, Jessica M Salmon wrote:
> I am brand new to creating my own data types in postgres. I first created a
> type called "indices", containing two integers. Now, I want to create
> another type, called "progress", which should contain one timestamp and an
> array of "indices". However, I cannot figure out how to get postgres to
> recognize the array of my home-brewed composite data type as a valid data
> type. Can I just insert a new element into the pg_type table, for a type
> called "_indices"?

http://www.postgresql.org/docs/8.1/interactive/arrays.html

"Arrays of any built-in or user-defined base type can be created.
(Arrays of composite types or domains are not yet supported,
however.)"

What are you trying to model? Have you considered other ways of
representing it?

--
Michael Fuhr

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Magnus Hagander 2006-06-07 14:05:17 Re: Can PostGreSQL slow down a Windows PC much?
Previous Message surabhi.ahuja 2006-06-07 13:52:59 Re: date value not geting inserted properly