inheritance

From: Chris Bitmead <chris(at)tech(dot)com(dot)au>
To: pgsql-hackers(at)postgresql(dot)org, pgsql-sql(at)postgresql(dot)org, pgsql-general(at)postgresql(dot)org
Subject: inheritance
Date: 1999-07-21 13:21:27
Message-ID: 3795C957.CFA11B91@tech.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers pgsql-sql


I've been reading up on what Informix and Oracle provide in the way of
object support.

In particular I noticed that in Informix when you SELECT on a table it
by default includes all the objects of sub-classes. In other words the
"*" is postgres terms is always there by default. If you just want that
class only you have to say ONLY(tablename).

To me this is a much better idea. In any proper OO application you would
be using the "*" in postgres 99% of the time - that being the whole
point of OO. Does any consideration want to be given to making the same
change while there's not too many people using the inheritance feature?
I realise breaking compatibility is bad, but I think this is the Right
Thing. When you say "SELECT * FROM animal" it's reasonable that you be
returned all elephants. To not return them is pretty strange for the
uninitiated.

The other thing Informix does is automatically propagate all attributes
including indexes, constraints, pretty much everything to sub-classes.
Again.. I think this is the right thing. Any thoughts?

As for Oracle 8i, as far as I can tell it provides no support for
inheritance whatsoever. The docs themselves say "Oracle doesn't support
inheritance". It's a bit rich really to call it Oracle "object" in any
shape or form.

--
Chris Bitmead
mailto:chris(at)tech(dot)com(dot)au

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 1999-07-21 13:38:13 Re: [SQL] Bad update performance?
Previous Message Mark Wilson 1999-07-21 12:48:12 OID IS INVALID?

Browse pgsql-hackers by date

  From Date Subject
Next Message Mike Mascari 1999-07-21 14:07:12 Re: [HACKERS] psql & query string length
Previous Message The Hermit Hacker 1999-07-21 12:15:05 Re: [HACKERS] Bug tracking

Browse pgsql-sql by date

  From Date Subject
Next Message Karin Probost 1999-07-21 13:27:44 I dont't receive any messages
Previous Message Herouth Maoz 1999-07-21 09:52:31 Re: [SQL] Bad update performance?