pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: The Hermit Hacker <scrappy@hub.org>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: chris@bitmead.com
Cc: pgsql-hackers@postgreSQL.org
Cc: pgsql-sql@postgreSQL.org
Subject: Re: [HACKERS] Re: [SQL] Proposed Changes to PostgreSQL
Date: Wed, 2 Feb 2000 23:38:05 -0400 (AST)
Message-ID: <Pine.BSF.4.21.0002022334200.25537-100000@thelab.hub.org> (raw)
In-Reply-To: <24649.949546519@sss.pgh.pa.us>

On Wed, 2 Feb 2000, Tom Lane wrote:

> > 2) Changing the sense of the default for getting inherited tuples.
> > Currently you only get inherited tuples if you specify "tablename*".
> > This would be changed so that you get all sub-class tuples too by
> > default unless you specify "ONLY tablename". There are several
> > rationale for this. Firstly this is what Illustra/Informix have
> > implemented. Secondly, I believe it is more logical from an OO
> > perspective as well as giving a more useful default.
> 
> Well, mumble.  That would be the cleanest choice if we were designing
> in a green field, but we aren't.  You're talking about breaking every
> single extant Postgres application that uses inheritance, and possibly
> some that don't use it except as a shorthand for making their schemas
> more compact.  (That's not a hypothetical case; I have DBs that use
> schema inheritance but never do SELECT FROM table*.)  I think that's
> a mighty high price to pay for achieving a little more logical
> cleanliness.
> 
> There is also a nontrivial performance penalty that would be paid
> for reversing this default, because then every ordinary SQL query
> would suffer the overhead of looking to see whether there are
> child tables for each table named in the query.  That *really*
> doesn't strike me as a good idea.
> 
> If Illustra were popular enough to have defined an industry standard
> about inheritance, I might think we should follow their lead --- but
> who else has followed their lead?
> 
> In short, I vote for leaving well enough alone.  It's not so badly
> wrong as to be intolerable, and the pain of changing looks high.

Could this be implemented/patched in using #ifdef's, so that you could
configure using --old-style-inheritance so that those that require it
still have it, giving applications a chance to catch up?  

Marc G. Fournier                   ICQ#7615664               IRC Nick: Scrappy
Systems Administrator @ hub.org 
primary: scrappy@hub.org           secondary: scrappy@{freebsd|postgresql}.org 




view thread (68+ messages)  latest in thread

Message-ID: <Pine.BSF.4.21.0002022334200.25537-100000@thelab.hub.org>
Permalink:  ../Pine.BSF.4.21.0002022334200.25537-100000@thelab.hub.org/
Also on:    postgresql.org/message-id/Pine.BSF.4.21.0002022334200.25537-100000@thelab.hub.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: scrappy@hub.org, tgl@sss.pgh.pa.us, chris@bitmead.com, pgsql-hackers@postgreSQL.org
  Subject: Re: [HACKERS] Re: [SQL] Proposed Changes to PostgreSQL
  In-Reply-To: <Pine.BSF.4.21.0002022334200.25537-100000@thelab.hub.org>
  References: <24649.949546519@sss.pgh.pa.us> <Pine.BSF.4.21.0002022334200.25537-100000@thelab.hub.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox