Received: from sss.pgh.pa.us (sss.pgh.pa.us [209.114.132.154]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f02HndL95748; Tue, 2 Jan 2001 12:49:39 -0500 (EST) (envelope-from tgl@sss.pgh.pa.us) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.1/8.11.1) with ESMTP id f02Hmu412915; Tue, 2 Jan 2001 12:48:56 -0500 (EST) To: "Robert B. Easter" cc: Hannu Krosing , Peter Eisentraut , Paul Govereau , pgsql-docs@postgresql.org, pgsql-hackers@postgresql.org Subject: Re: [HACKERS] Re: Inheritance docs error. In-reply-to: <01010201595503.09559@comptechnews> References: <3794.978206926@sss.pgh.pa.us> <3A500043.2386D0C3@tm.ee> <01010201595503.09559@comptechnews> Comments: In-reply-to "Robert B. Easter" message dated "Tue, 02 Jan 2001 01:59:55 -0500" Date: Tue, 02 Jan 2001 12:48:56 -0500 Message-ID: <12912.978457736@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200101/5 X-Sequence-Number: 139 "Robert B. Easter" writes: > I thought about this UNDER/INHERITS stuff months ago and wrote this file: > http://www.comptechnews.com/~reaster/pgoo.html Good analysis, especially the fundamental point that UNDER is only designed to support single inheritance, whereas INHERITS allows multiple inheritance. The current grammar treats UNDER as interchangeable with INHERITS, including allowing multiple names to be listed as UNDER. That would certainly be a fatal mistake, since it would create a backwards compatibility problem as soon as we wanted to support any of the features of UNDER that require single inheritance. > I'm not sure everything in the file is correct though. One thing that bothered me is that my reading of the SQL99 draft disallows the UNDER syntax you are using. I read: ::= CREATE [
] TABLE
[ ON COMMIT
ROWS ]
::=
| OF [ ] [
] ::= UNDER ::= It looks to me like "UNDER
" cannot appear without a preceding "OF ". I am not clear on the semantic implications of the OF clause. Anyway, we seem to have a clear consensus to pull the UNDER clause from the grammar and stick with INHERITS for 7.1. I will take care of that in the next day or so. regards, tom lane