Re: proposal for smaller indexes on index-ordered tables - Mailing list pgsql-hackers

From Jonah H. Harris
Subject Re: proposal for smaller indexes on index-ordered tables
Date
Msg-id 36e682920806241350o21d77ee3ia2ffa0b1c5b9f03b@mail.gmail.com
Whole thread Raw
In response to proposal for smaller indexes on index-ordered tables  ("Jeffrey Baker" <jwbaker@gmail.com>)
Responses Re: proposal for smaller indexes on index-ordered tables  ("Jaime Casanova" <jcasanov@systemguards.com.ec>)
List pgsql-hackers
On Tue, Jun 24, 2008 at 4:34 PM, Jeffrey Baker <jwbaker@gmail.com> wrote:
> Supposing the table is generally or strictly ordered by the column to be
> indexed, it would be more compact if the index stored ranges of tuples.
> Instead of storing the TID of every tuple with that value, the index would
> store a first and last TID, between which all tuples have the value.

There are several databases which implement this idea.  Unfortunately,
Postgres does not yet ensure that indexed tables remain indexed.  As
such, an index such as this would soon be ineffective.  IIRC, Heikki
has done some work on keeping clustered tables clustered, but it
hasn't yet made it into core.

-- 
Jonah H. Harris, Sr. Software Architect | phone: 732.331.1324
EnterpriseDB Corporation | fax: 732.331.1301
499 Thornall Street, 2nd Floor | jonah.harris@enterprisedb.com
Edison, NJ 08837 | http://www.enterprisedb.com/


pgsql-hackers by date:

Previous
From: "Jeffrey Baker"
Date:
Subject: proposal for smaller indexes on index-ordered tables
Next
From: daveg
Date:
Subject: Re: [PATCHES] Patch for Prevent pg_dump/pg_restore from being affected by statement_timeout