From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Bruce Momjian <bruce(at)momjian(dot)us> |
Cc: | Robert Haas <robertmhaas(at)gmail(dot)com>, Simon Riggs <simon(at)2ndquadrant(dot)com>, Jeff Janes <jeff(dot)janes(at)gmail(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: [PERFORM] Slow query: bitmap scan troubles |
Date: | 2013-01-15 20:11:02 |
Message-ID: | 1723.1358280662@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-performance |
Bruce Momjian <bruce(at)momjian(dot)us> writes:
> On Mon, Jan 14, 2013 at 12:56:37PM -0500, Tom Lane wrote:
>> Remember also that "enable_seqscan=off" merely adds 1e10 to the
>> estimated cost of seqscans. For sufficiently large tables this is not
>> exactly a hard disable, just a thumb on the scales. But I don't know
>> what your definition of "extremely large indexes" is.
> Wow, do we need to bump up that value based on larger modern hardware?
I'm disinclined to bump it up very much. If it's more than about 1e16,
ordinary cost contributions would disappear into float8 roundoff error,
causing the planner to be making choices that are utterly random except
for minimizing the number of seqscans. Even at 1e14 or so you'd be
losing a lot of finer-grain distinctions. What we want is for the
behavior to be "minimize the number of seqscans but plan normally
otherwise", so those other cost contributions are still important.
Anyway, at this point we're merely speculating about what's behind
Robert's report --- I'd want to see some concrete real-world examples
before changing anything.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Andrew Dunstan | 2013-01-15 20:17:10 | Re: json api WIP patch |
Previous Message | Robert Haas | 2013-01-15 20:09:38 | Re: erroneous restore into pg_catalog schema |
From | Date | Subject | |
---|---|---|---|
Next Message | Horst Dehmer | 2013-01-15 23:44:29 | Re: Insert performance for large transaction with multiple COPY FROM |
Previous Message | Bruce Momjian | 2013-01-15 19:46:39 | Re: [PERFORM] Slow query: bitmap scan troubles |