Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id E752D9FA1F7 for ; Tue, 14 Aug 2007 18:27:51 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 86826-03-4 for ; Tue, 14 Aug 2007 18:27:37 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from noel.decibel.org (noel.decibel.org [67.100.216.10]) by postgresql.org (Postfix) with ESMTP id AD11C9FA28E for ; Tue, 14 Aug 2007 18:27:42 -0300 (ADT) Received: by noel.decibel.org (Postfix, from userid 1001) id 3227C56521; Tue, 14 Aug 2007 16:27:41 -0500 (CDT) Received: (hashcash-sendmail, from uid 1001); Tue, 14 Aug 2007 16:27:39 -0500 Date: Tue, 14 Aug 2007 16:27:39 -0500 From: Decibel! To: Chris Browne Cc: pgsql-hackers@postgresql.org Subject: Re: Index Tuple Compression Approach? Message-ID: <20070814212739.GS54135@nasby.net> References: <604pj1n777.fsf_-_@dba2.int.libertyrms.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="A9z/3b/E4MkkD+7G" Content-Disposition: inline In-Reply-To: <604pj1n777.fsf_-_@dba2.int.libertyrms.com> X-Operating-System: FreeBSD 6.1-RELEASE-p10 amd64 X-Distributed: Join the Effort! http://www.distributed.net User-Agent: Mutt/1.5.13 (2006-08-11) X-Hashcash: 1:20:070814:cbbrowne@acm.org::KAUEo83gttGKKg2b:00mLq X-Hashcash: 1:20:070814:pgsql-hackers@postgresql.org::B8nRvotn6F3tRAu1:000000000 0000000000000000000000000rni X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200708/448 X-Sequence-Number: 106370 --A9z/3b/E4MkkD+7G Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Isn't this what Grouped Index Tuples is? On Tue, Aug 14, 2007 at 05:21:16PM -0400, Chris Browne wrote: > I recently had a chat with someone who was pretty intimate with Adabas > for a number of years who's in the process of figuring things out > about PostgreSQL. We poked at bits of the respective implementations, > seeing some similarities and differences. He pointed out one aspect > of index handling that could (in principle) be an interesting > optimization. >=20 > Evidently, in Adabas, index leaf nodes were not simply tuples, but > lists where the index value would not be repeated. >=20 > In PostgreSQL, if you have the index value 'abc', and there are 10 > tuples with that value, then you'll have a page full of tuples of the > following form: >=20 > |abc|ptr[rec1]|abc|ptr[rec2]|abc|ptr[rec3]| ...and so forth... >=20 > Now, the Adabas approach was rather different. It would only have the > index value once, and then have the list of tuple pointers: >=20 > |abc|ptr[rec1],ptr[rec2],ptr[rec3],...[ptr[rec10]| >=20 > This could allow a fair bit of compression, for cases where the index > value is not unique. >=20 > There is a concommitant downside, that concurrent updates may fight > over a page, and, since there would be a higher density, there would > be more need to fight over pages. >=20 > Does this seem pretty much like madness? Or is it a plausible "some > day ToDo"? > --=20 > "cbbrowne","@","acm.org" > http://linuxfinances.info/info/postgresql.html > "I don't do drugs anymore 'cause I find I get the same effect just by > standing up really fast." -- Jonathan Katz >=20 > ---------------------------(end of broadcast)--------------------------- > TIP 4: Have you searched our list archives? >=20 > http://archives.postgresql.org >=20 --=20 Decibel!, aka Jim Nasby decibel@decibel.org EnterpriseDB http://enterprisedb.com 512.569.9461 (cell) --A9z/3b/E4MkkD+7G Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.3 (FreeBSD) iD8DBQFGwh5LdO30qud8SkgRAihFAJ4+NfZxk0Mjn3PQkhBmgbWRujQG5QCg4P2I cmHecW49kxYgQsrbGUUTn/8= =+MHx -----END PGP SIGNATURE----- --A9z/3b/E4MkkD+7G--