From: Heikki Linnakangas <heikki@enterprisedb.com>
To: Dawid Kuroczko <qnex42@gmail.com>
Cc: pgsql-hackers@postgresql.org
Subject: Re: Index Tuple Compression Approach?
Date: Wed, 15 Aug 2007 20:31:24 +0100
Message-ID: <46C3548C.90100@enterprisedb.com> (raw)
In-Reply-To: <758d5e7f0708150939w1a08590aw1abcfcde402122df@mail.gmail.com>
References: <604pj1n777.fsf_-_@dba2.int.libertyrms.com>
<758d5e7f0708150610j3e6ee948i760d01b91ca29c81@mail.gmail.com>
<758d5e7f0708150939w1a08590aw1abcfcde402122df@mail.gmail.com>
Dawid Kuroczko wrote:
> Some time ago I've had an idea that it might be possible to compress
> th index size, even if it is a unique index. Take the path example.
> My idea would be to to split indexed value to 8-byte chunks.
> For example: /var/lib/postgresql/8.2/main would be split into:
> "/var/lib"
> "/postgre"
> "sql/8.2" -- these would be insertered into a tree as a "scaffold",
> and only vacuum should remove them..
> "main" -- this would be a leaf node. It could be repeated in non-unique
> indexes.
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.
It's been discussed before. One big problem is extracting the common
leading part. You could only do it for text, but it should be done in a
datatype neutral way.
--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com
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, qnex42@gmail.com
Subject: Re: Index Tuple Compression Approach?
In-Reply-To: <46C3548C.90100@enterprisedb.com>
References: <604pj1n777.fsf_-_@dba2.int.libertyrms.com> <758d5e7f0708150610j3e6ee948i760d01b91ca29c81@mail.gmail.com> <758d5e7f0708150939w1a08590aw1abcfcde402122df@mail.gmail.com> <46C3548C.90100@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