Re: Bitmap index scan preread using posix_fadvise

From: Gregory Stark <stark(at)enterprisedb(dot)com>
To: "PostgreSQL-development Hackers" <pgsql-patches(at)postgresql(dot)org>
Cc: <Kevin(dot)Grittner(at)wicourts(dot)gov>
Subject: Re: Bitmap index scan preread using posix_fadvise
Date: 2008-02-01 14:57:55
Message-ID: 87lk64afm4.fsf@oxford.xeocode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches


Attached is the correct patch, sorry for the confusion.

If anyone's interested in testing it you can do so without the randomarray.c
file by using Pavel Stehule's solution for generating arrays:

postgres=# create table h as (select (random()*1000000)::integer as r, repeat('x',512)::text as t from generate_series(1,1000000));
SELECT

postgres=# create index hri on h(r);
CREATE INDEX

postgres=# analyze h;
ANALYZE

postgres=# \timing
Timing is on.

postgres=# set preread_pages = 0; explain analyze select * from h where r = any (array(select (1+random()*1000000)::integer from generate_series(1,100)));
postgres=# set preread_pages = 100; explain analyze select * from h where r = any (array(select (1+random()*1000000)::integer from generate_series(1,100)));
postgres=# set preread_pages = 0; explain analyze select * from h where r = any (array(select (1+random()*1000000)::integer from generate_series(1,100)));
postgres=# set preread_pages = 100; explain analyze select * from h where r = any (array(select (1+random()*1000000)::integer from generate_series(1,100)));
postgres=# set preread_pages = 0; explain analyze select * from h where r = any (array(select (1+random()*1000000)::integer from generate_series(1,100)));

Attachment Content-Type Size
bitmap-preread-v8.diff.gz application/octet-stream 6.2 KB

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message Kevin Grittner 2008-02-01 15:18:00 Re: [PATCHES] Better default_statistics_target
Previous Message Gregory Stark 2008-02-01 14:11:00 Re: Bitmap index scan preread using posix_fadvise