Re: [PATCHES] Bitmapscan changes - Mailing list pgsql-hackers

From Joshua D. Drake
Subject Re: [PATCHES] Bitmapscan changes
Date
Msg-id 46014DF2.7070105@commandprompt.com
Whole thread Raw
In response to Re: [PATCHES] Bitmapscan changes  (Grzegorz Jaskiewicz <gj@pointblue.com.pl>)
Responses Re: [PATCHES] Bitmapscan changes  (Heikki Linnakangas <heikki@enterprisedb.com>)
List pgsql-hackers
Grzegorz Jaskiewicz wrote:
> 
> On Mar 19, 2007, at 11:16 AM, Heikki Linnakangas wrote:
> 
>> Grzegorz Jaskiewicz wrote:
>>> On Mar 16, 2007, at 10:12 PM, Heikki Linnakangas wrote:
>>>> You'll obviously need to run it with the patch applied. I'd suggest
>>>> to enable stats_block_level to see the effect on buffer cache
>>>> hit/miss ratio.
>>> groupeditems-42-pghead.patch.gz is enough, or it needs
>>> maintain_cluster_order_v5.patch ??
>>
>> No, it won't make a difference unless you're inserting to the table,
>> and the inserts are not in cluster order.
> well, that's okay than. I see really good improvement in terms of speed
> and db size (which reflects obviously in i/o performance).
> Let me know if further testing can be done. I would happily see it in
> mainline.
> 

Right. My understanding is that the clustered index will gradually
degrade to a normal btree, is that correct heikki?

We could of course resolve this by doing a reindex.

The other item I think this would be great for is fairly static tables.
Think about tables that are children of partitions that haven't been
touched in 6 months. Why are we wasting space with them?

Anyway, from a "feature" perspective I can't see any negative. I can not
speak from a code injection (into core) perspective.

Joshua D. Drake



> 
> 
> --Grzegorz Jaskiewicz
> 
> C/C++ freelance for hire
> 
> 
> 
> 
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 6: explain analyze is your friend
> 


-- 
     === The PostgreSQL Company: Command Prompt, Inc. ===
Sales/Support: +1.503.667.4564 || 24x7/Emergency: +1.800.492.2240
Providing the most comprehensive  PostgreSQL solutions since 1997            http://www.commandprompt.com/

Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate
PostgreSQL Replication: http://www.commandprompt.com/products/



pgsql-hackers by date:

Previous
From: Grzegorz Jaskiewicz
Date:
Subject: Re: [PATCHES] Bitmapscan changes
Next
From: Tom Lane
Date:
Subject: Re: [GENERAL] Remove add_missing_from_clause?