X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 93DC53A4CE2 for ; Sat, 27 Nov 2004 14:05:04 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 08297-08 for ; Sat, 27 Nov 2004 14:04:52 +0000 (GMT) Received: from webmail-outgoing.us4.outblaze.com (webmail-outgoing.us4.outblaze.com [205.158.62.67]) by svr1.postgresql.org (Postfix) with ESMTP id D4F3C3A4D5A for ; Sat, 27 Nov 2004 14:04:55 +0000 (GMT) Received: from wfilter.us4.outblaze.com (wfilter.us4.outblaze.com [205.158.62.180]) by webmail-outgoing.us4.outblaze.com (Postfix) with QMQP id 356501800213 for ; Sat, 27 Nov 2004 14:04:55 +0000 (GMT) X-OB-Received: from unknown (205.158.62.86) by wfilter.us4.outblaze.com; 27 Nov 2004 14:04:55 -0000 Received: by ws5-4.us4.outblaze.com (Postfix, from userid 1001) id 1324023EF6B; Sat, 27 Nov 2004 14:04:55 +0000 (GMT) Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Received: from [80.41.71.164] by ws5-4.us4.outblaze.com with http for andrew.thorley@linuxmail.org; Sat, 27 Nov 2004 22:04:55 +0800 From: "Andrew Thorley" To: "Tom Lane" Cc: "pgsql-sql @ postgresql . org" Date: Sat, 27 Nov 2004 22:04:55 +0800 Subject: Re: Type Inheritance X-Originating-Ip: 80.41.71.164 X-Originating-Server: ws5-4.us4.outblaze.com Message-Id: <20041127140455.1324023EF6B@ws5-4.us4.outblaze.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200411/275 X-Sequence-Number: 19593 hi tom thanks for reply. im trying to provide inheritance for data types (domains), not tables. i wi= ll look into the syntax associated with domains as data types does not incl= ude an inheritance function (or so i think). regards andy. ----- Original Message ----- From: "Tom Lane" To: "Andrew Thorley" Subject: Re: [SQL] Type Inheritance=20 Date: Fri, 26 Nov 2004 13:14:07 -0500 >=20 > "Andrew Thorley" writes: > > Does anyone know how to implement type inheritance in postgresql? in or= acle you just use the word UNDER in ur code i.e: > > CREATE TYPE test2_UDT UNDER test1_UDT AS (abc INT); >=20 > If you had said what this *does*, we might be better able to help. >=20 > But take a look at CREATE DOMAIN, as well as the INHERITS and LIKE > options in CREATE TABLE. Some part of that might be close to what > you are looking for. >=20 > regards, tom lane >=20 > ---------------------------(end of broadcast)--------------------------- > TIP 9: the planner will ignore your desire to choose an index scan if your > joining column's datatypes do not match >=20 --=20 ______________________________________________ Check out the latest SMS services @ http://www.linuxmail.org=20 This allows you to send and receive SMS through your mailbox. Powered by Outblaze