Re: Why won't it index scan?

From: "Jim C(dot) Nasby" <jnasby(at)pervasive(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "Ed L(dot)" <pgsql(at)bluepolka(dot)net>, pgsql-general(at)postgresql(dot)org
Subject: Re: Why won't it index scan?
Date: 2006-05-23 22:03:48
Message-ID: 20060523220348.GB64371@pervasive.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, May 22, 2006 at 06:43:22PM -0400, Tom Lane wrote:
> "Jim C. Nasby" <jnasby(at)pervasive(dot)com> writes:
> > On Wed, May 17, 2006 at 10:29:14PM -0400, Tom Lane wrote:
> >> The reason the default is currently 10 is just conservatism: it was
> >> already an order of magnitude better than what it replaced (a *single*
> >> representative value) and I didn't feel I had the evidence to justify
> >> higher values. It's become clear that the default ought to be higher,
> >> but I've still got no good fix on a more reasonable default. 100 might
> >> be too much, or then again maybe not.
>
> > Is the only downside to a large value planning speed? It seems it would
> > be hard to bloat that too much, except in cases where people are
> > striving for millisecond response times, and those folks had better know
> > enough about tuning to be able to adjust the stats target...
>
> It would be nice to have some *evidence*, not unsupported handwaving.

If someone has an idea on how to actually get that evidence, I'm all
ears. In the meantime, the number of people that run into problems with
the default of 10 provides pretty good evidence that that number is far
too low, so it would be better to take a guess at a better number and
miss whatever would be optimal than continue on with something that's
pretty clearly a problem.

Of course this applies to other GUC's as well; the autovacuum settings
come to mind, now that 8.2 does a better job of finding a more realistic
value for shared_buffers.
--
Jim C. Nasby, Sr. Engineering Consultant jnasby(at)pervasive(dot)com
Pervasive Software http://pervasive.com work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jim C. Nasby 2006-05-23 22:05:07 Re: Why won't it index scan?
Previous Message Jim C. Nasby 2006-05-23 21:57:00 Re: Insert into partition table hangs