Type inheritance

From: Gianvito Pio <pio(dot)gianvito(at)gmail(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Type inheritance
Date: 2009-06-05 10:30:08
Message-ID: 5eca56860906050330w6171b327k95881b13c4dca466@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2009-06-05 13:48:29 Re: Type inheritance
Previous Message Rob Sargent 2009-06-04 20:14:01 page-base stats per query?