Re: [PATCHES] VACUUM Improvements - WIP Patch - Mailing list pgsql-hackers

From Heikki Linnakangas
Subject Re: [PATCHES] VACUUM Improvements - WIP Patch
Date
Msg-id 48BB8BC9.7080508@enterprisedb.com
Whole thread Raw
In response to Re: [PATCHES] VACUUM Improvements - WIP Patch  ("Pavan Deolasee" <pavan.deolasee@gmail.com>)
List pgsql-hackers
Abhijit Menon-Sen wrote:
> At 2008-08-25 10:24:01 +0300, heikki@enterprisedb.com wrote:
>> My original plan was to enable index-only-scans using the DSM as well
>> for 8.4, but it's pretty clear at this point that I don't have the
>> time to finish that :-(.
> 
> I wonder how hard that would be.

It's doable, for sure.

The pieces I see as required for that are:
1. change the indexam API so that indexes can return tuples
2. make sure the DSM is suitable for index-only-scans. Ie. it must be 
completely up-to-date and WAL-logged, so that if the DSM says that all 
tuples on a page are visible, they really must be.
3. planner/stats changes, so that the planner can estimate how much of 
an index scan can be satisfied without looking at the heap (it's not an 
all-or-nothing plan-time decision with this design)

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


pgsql-hackers by date:

Previous
From: David Fetter
Date:
Subject: Re: Window functions patch v04 for the September commit fest
Next
From: Stephen Frost
Date:
Subject: WIP: Column-level Privileges