Received: from job.gits.nl (job.gits.nl [194.178.243.251]) by hub.org (8.8.8/8.7.5) with ESMTP id LAA04100 for ; Wed, 8 Apr 1998 11:01:06 -0400 (EDT) Received: from caleb..gits.nl (caleb.gits.nl [194.178.243.252]) by job.gits.nl (8.8.7/8.8.7) with SMTP id RAA09106 for ; Wed, 8 Apr 1998 17:10:48 -0400 Message-ID: <008b01bd62fe$e9de09e0$fcf3b2c2@caleb..gits.nl> From: "Maurice Gittens" To: Subject: Re: [HACKERS] On improving OO support in posgresql and relaxing oid bottleneck at the same time Date: Wed, 8 Apr 1998 16:59:21 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.2106.4 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 -----Original Message----- From: Maurice Gittens To: hackers@postgreSQL.org Date: zondag 5 april 1998 21:47 Subject: [HACKERS] On improving OO support in posgresql and relaxing oid bottleneck at the same time >Hi, > >I'm currently under the impression that the following change in the >postgresql system would benefict the overall performance and quality >of the system. > > Tuples for a class and all it's derived classes are stored in one file. > >Advantages: -- cut -- > > >Disadvantages >- sequential heapscans for tables _with_ derived classes will be less >efficient > in general, because now some tuples may have to be skipped since they >may > belong to the wrong class. This is easily solved using indices. > >- slight space overhead for tuple when not using inheritance. > The space is used to tag each tuple with the most derived class it > belongs to. > One extra disadvantage of this is that multiple inheritance is only easily supported if bases classes being inherited from have a common top most base class. In which all tuples are stored. Otherwise we'll storagefile independant oid's will become necesary again. So loosely speaking it still allows for multiple inheritance but only within a common hierarchy. With regards from Maurice.