pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jackson, DeJuan <djackson@cpsgroup.com>
To: Ingrith Andrea Correa Vargas <i-correa@uniandes.edu.co>
To: pgsql-sql@postgreSQL.org
Subject: RE: [SQL] types and subtypes
Date: Wed, 24 Mar 1999 16:27:02 -0600
Message-ID: <D05EF808F2DFD211AE4A00105AA1B5D20269A2@cpsmail.cpsgroup.com> (raw)

> hello all!
> 
> I want to simulate objects with Postgres and I would like to 
> know if it's
> possible to create a type (like address: t_address) and then to create
> another type (like customer) with an attribute of type t_address.
Yes, you can.  

> And I have a second question:
> Can I make a "reference" to an object of an existing type?!
If what you mean here is a c-style typedef no not really but you can use
inheritance.
If what you mean is another name by which to refer to a table or row then
the answer depend complete upon the context.  In rules tables are already
referenced as new, old, current.  In pl/pgsql you can create references
until your hearts content.

> These are features provided by the SQL3 standar, I want to 
> know if it's
> possible to implement it with Postgres.
PostgreSQL isn't fully SQL3 compliant, but it's getting there.  

> Can somebody help to me?!
That depends upon your problem, and you must remember that we are not
psychiatrist, plastic-surgeons, or magicians but we'll do our best.

> Thank you in advance,
> //Ingrith Correa :)
You're welcome in behind,
	-DEJ



view thread (2+ messages)

Message-ID: <D05EF808F2DFD211AE4A00105AA1B5D20269A2@cpsmail.cpsgroup.com>
Permalink:  ../D05EF808F2DFD211AE4A00105AA1B5D20269A2@cpsmail.cpsgroup.com/
Also on:    postgresql.org/message-id/D05EF808F2DFD211AE4A00105AA1B5D20269A2@cpsmail.cpsgroup.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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: djackson@cpsgroup.com, i-correa@uniandes.edu.co
  Subject: Re: [SQL] types and subtypes
  In-Reply-To: <D05EF808F2DFD211AE4A00105AA1B5D20269A2@cpsmail.cpsgroup.com>
  References: <D05EF808F2DFD211AE4A00105AA1B5D20269A2@cpsmail.cpsgroup.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