Re: [COMMITTERS] pgsql: Install some slightly realistic cost

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Mike Rylander <mrylander(at)gmail(dot)com>, Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [COMMITTERS] pgsql: Install some slightly realistic cost
Date: 2005-04-21 15:21:57
Message-ID: 200504211521.j3LFLvK19778@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

Tom Lane wrote:
> > It will also keep long lists of ORs from turning what would have been
> > a >10% index scan into a seq scan, yes?
>
> It should look more attractive than the old method, yes. At some point
> you still end up deciding you might as well seqscan. I'm not sure
> whether the cost estimation model I put in last night gets the crossover
> point right --- we'll need to get some field experience as soon as the
> code is reasonably functional.
>
> That reminds me: at least for testing purposes, it'd be a good idea
> to have an additional planner "enable" switch for this plan type,
> analogous to enable_seqscan and enable_indexscan. Any objections to
> adding one? Should I call it "enable_bitmapscan", or can someone
> think of a less ugly name?

I think "enable_bitmapscan" is the best we can do.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2005-04-21 19:18:14 pgsql: Rethink original decision to use AND/OR Expr nodes to represent
Previous Message Bruce Momjian 2005-04-21 15:20:40 pgsql: Updated text for bitmaps: < Bitmap indexes index single

Browse pgsql-hackers by date

  From Date Subject
Next Message Stephen Frost 2005-04-21 15:44:31 Re: Postgres: pg_hba.conf, md5, pg_shadow, encrypted passwords
Previous Message Bruce Momjian 2005-04-21 15:20:08 Re: [COMMITTERS] pgsql: Install some slightly realistic cost