pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Broersma Jr <rabroersma@yahoo.com>
To: rodrigo.sakai@zanthus.com.br
To: pgsql-sql@postgresql.org
Subject: Re: Another question about composite types
Date: Mon, 13 Nov 2006 09:46:05 -0800 (PST)
Message-ID: <277719.72609.qm@web31811.mail.mud.yahoo.com> (raw)
In-Reply-To: <000101c70752$3de4b560$4700a8c0@TREEZANTHUS>

>   CREATE TYPE t_salary AS (Value numeric(10,2), Validity date);
>   CREATE TABLE employee (id int, name varchar(30), salary t_salary[]);
>
> That is, I need an array of composite type and searching on google I found
> that is impossible to do it! Is it really impossible? Anyone have do it ?

Why not use a conventional table to hold this information that references your employee table?

Regards,

Richard Broersma Jr.



view thread (3+ messages)  latest in thread

Message-ID: <277719.72609.qm@web31811.mail.mud.yahoo.com>
Permalink:  ../277719.72609.qm@web31811.mail.mud.yahoo.com/
Also on:    postgresql.org/message-id/277719.72609.qm@web31811.mail.mud.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: rabroersma@yahoo.com, rodrigo.sakai@zanthus.com.br
  Subject: Re: Another question about composite types
  In-Reply-To: <277719.72609.qm@web31811.mail.mud.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox