pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rodrigo Sakai <rodrigo.sakai@zanthus.com.br>
To: pgsql-sql@postgresql.org
Subject: Another question about composite types
Date: Mon, 13 Nov 2006 15:33:40 -0300
Message-ID: <000101c70752$3de4b560$4700a8c0@TREEZANTHUS> (raw)

  Hi, I need to create a table like:

 

  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 ?

 

 

 Thanks!

view thread (3+ messages)  latest in thread

Message-ID: <000101c70752$3de4b560$4700a8c0@TREEZANTHUS>
Permalink:  ../000101c70752$3de4b560$4700a8c0@TREEZANTHUS/
Also on:    postgresql.org/message-id/000101c70752$3de4b560$4700a8c0@TREEZANTHUS

 · 

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: rodrigo.sakai@zanthus.com.br
  Subject: Re: Another question about composite types
  In-Reply-To: <000101c70752$3de4b560$4700a8c0@TREEZANTHUS>

* 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