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 7B31E3A4D62 for ; Sat, 27 Nov 2004 15:33:37 +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 33213-05 for ; Sat, 27 Nov 2004 15:33:27 +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 B7ECE3A2014 for ; Sat, 27 Nov 2004 15:33:29 +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 7EC4518001BE for ; Sat, 27 Nov 2004 15:33:30 +0000 (GMT) X-OB-Received: from unknown (205.158.62.132) by wfilter.us4.outblaze.com; 27 Nov 2004 15:33:30 -0000 Received: by ws5-2.us4.outblaze.com (Postfix, from userid 1001) id 2568F416118; Sat, 27 Nov 2004 15:33:30 +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.101.192] by ws5-2.us4.outblaze.com with http for andrew.thorley@linuxmail.org; Sat, 27 Nov 2004 23:33:30 +0800 From: "Andrew Thorley" To: "Andrew Thorley" , "Tom Lane" Cc: "pgsql-sql @ postgresql . org" Date: Sat, 27 Nov 2004 23:33:30 +0800 Subject: Re: Type Inheritance X-Originating-Ip: 80.41.101.192 X-Originating-Server: ws5-2.us4.outblaze.com Message-Id: <20041127153330.2568F416118@ws5-2.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/276 X-Sequence-Number: 19594 "If you had said what this *does*, we might be better able to help" basically i have a series of types (or data types), of which one is the roo= t and each of the other types appear under the root as in generalisation/sp= ecialisation style, inheriting the above types attributes etc. this is what= im trying to achieve, although at present, to no avail :( ----- Original Message ----- From: "Andrew Thorley" To: "Tom Lane" Subject: Re: [SQL] Type Inheritance Date: Sat, 27 Nov 2004 22:04:55 +0800 >=20 > hi tom thanks for reply. >=20 > im trying to provide inheritance for data types (domains), not tables. i = will look into the syntax associated with domains as data types does not in= clude an inheritance function (or so i think). >=20 > regards andy. >=20 >=20 > ----- Original Message ----- > From: "Tom Lane" > To: "Andrew Thorley" > Subject: Re: [SQL] Type Inheritance=20 > Date: Fri, 26 Nov 2004 13:14:07 -0500 >=20 > >=20 > > "Andrew Thorley" writes: > > > Does anyone know how to implement type inheritance in postgresql? in = oracle 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 y= our > > joining column's datatypes do not match > >=20 >=20 > --=20 > ______________________________________________ > Check out the latest SMS services @ http://www.linuxmail.org=20 > This allows you to send and receive SMS through your mailbox. >=20 >=20 > Powered by Outblaze >=20 > ---------------------------(end of broadcast)--------------------------- > TIP 8: explain analyze is your friend >=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