Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 6A16D634522 for ; Fri, 5 Jun 2009 10:48:38 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 53754-02 for ; Fri, 5 Jun 2009 10:48:35 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 75F8463406E for ; Fri, 5 Jun 2009 10:48:35 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id n55DmTjt003045; Fri, 5 Jun 2009 09:48:30 -0400 (EDT) To: Gianvito Pio cc: pgsql-sql@postgresql.org Subject: Re: Type inheritance In-reply-to: <5eca56860906050330w6171b327k95881b13c4dca466@mail.gmail.com> References: <5eca56860906050330w6171b327k95881b13c4dca466@mail.gmail.com> Comments: In-reply-to Gianvito Pio message dated "Fri, 05 Jun 2009 12:30:08 +0200" Date: Fri, 05 Jun 2009 09:48:29 -0400 Message-ID: <3044.1244209709@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200906/21 X-Sequence-Number: 32626 Gianvito Pio 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