pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki@enterprisedb.com>
To: Gregory Stark <stark@enterprisedb.com>
Cc: Dawid Kuroczko <qnex42@gmail.com>
Cc: pgsql-hackers@postgresql.org
Subject: Re: Index Tuple Compression Approach?
Date: Thu, 16 Aug 2007 07:48:00 +0100
Message-ID: <46C3F320.1010809@enterprisedb.com> (raw)
In-Reply-To: <87bqd8y0w6.fsf@oxford.xeocode.com>
References: <604pj1n777.fsf_-_@dba2.int.libertyrms.com>
	<758d5e7f0708150610j3e6ee948i760d01b91ca29c81@mail.gmail.com>
	<758d5e7f0708150939w1a08590aw1abcfcde402122df@mail.gmail.com>
	<46C3548C.90100@enterprisedb.com>
	<87bqd8y0w6.fsf@oxford.xeocode.com>

Gregory Stark wrote:
> "Heikki Linnakangas" <heikki@enterprisedb.com> writes:
> 
>> That general approach of storing a common part leading part just once is
>> called prefix compression. Yeah, it helps a lot on long text fields.
>> Tree structures like file paths in particular.
> 
> You kind of want to do avoid both the prefix and the suffix, no? 

You're much more likely to find common prefixes than suffixes in an
index page, because of the ordering. I suppose compressing the suffix
would be useful in some cases as well. You might be better off with some
generic compression algorithm at that point, though.

>> It's been discussed before. One big problem is extracting the common
>> leading part. You could only do it for text, 
> 
> Or for multi-column indexes

Oh yeah, that you could do more easily.

-- 
  Heikki Linnakangas
  EnterpriseDB   http://www.enterprisedb.com



view thread (13+ messages)  latest in thread

Message-ID: <46C3F320.1010809@enterprisedb.com>
Permalink:  ../46C3F320.1010809@enterprisedb.com/
Also on:    postgresql.org/message-id/46C3F320.1010809@enterprisedb.com

 · 

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-hackers@postgresql.org
  Cc: heikki@enterprisedb.com, stark@enterprisedb.com, qnex42@gmail.com
  Subject: Re: Index Tuple Compression Approach?
  In-Reply-To: <46C3F320.1010809@enterprisedb.com>
  References: <604pj1n777.fsf_-_@dba2.int.libertyrms.com> <758d5e7f0708150610j3e6ee948i760d01b91ca29c81@mail.gmail.com> <758d5e7f0708150939w1a08590aw1abcfcde402122df@mail.gmail.com> <46C3548C.90100@enterprisedb.com> <87bqd8y0w6.fsf@oxford.xeocode.com> <46C3F320.1010809@enterprisedb.com>

* 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