From: Gianvito Pio <pio.gianvito@gmail.com>
To: pgsql-sql@postgresql.org
Subject: Re: Type inheritance
Date: Fri, 5 Jun 2009 17:13:10 +0200
Message-ID: <5eca56860906050813s2b77639aoebe73dd18d103891@mail.gmail.com> (raw)
In-Reply-To: <3044.1244209709@sss.pgh.pa.us>
References: <5eca56860906050330w6171b327k95881b13c4dca466@mail.gmail.com>
<3044.1244209709@sss.pgh.pa.us>
Domains just allow me to redefine base types, including some restrictions. I
just want to define a my own type and then to define some new types that
inherit from the first one. I hope it's clear now...
2009/6/5 Tom Lane <tgl@sss.pgh.pa.us>
> Gianvito Pio <pio.gianvito@gmail.com> writes:
> > 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.
>
> It's fairly unclear what your actual requirements are here, but perhaps
> domains would do the job?
>
> regards, tom lane
>
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: pio.gianvito@gmail.com
Subject: Re: Type inheritance
In-Reply-To: <5eca56860906050813s2b77639aoebe73dd18d103891@mail.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