From: Rob Sargent <robjsargent@gmail.com>
To: pgsql-sql@postgresql.org
Subject: Re: Type inheritance
Date: Fri, 05 Jun 2009 10:38:24 -0600
Message-ID: <4A294A00.5020802@gmail.com> (raw)
In-Reply-To: <5eca56860906050330w6171b327k95881b13c4dca466@mail.gmail.com>
References: <5eca56860906050330w6171b327k95881b13c4dca466@mail.gmail.com>
I'm not sure how Temperature and Humidity are related as types beyond
"extends float". i.e. What tuple definition could alternatively have a
Temp or a Humidity value? (I do understand their physical relationship :) )
Gianvito Pio wrote:
> Hi all,
> I just want to ask you if it's possible to define sub types in
> PostgreSQL (Type inheritance). I found that table inheritance is
> possible...but I'd like to do it on types.
>
> Example:
> define a type Value and two subtypes Temperature and Humidity and then
> define a table that has an attribute of Value type (that can accept
> both specialized types).
>
> Thanks
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: robjsargent@gmail.com
Subject: Re: Type inheritance
In-Reply-To: <4A294A00.5020802@gmail.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