Re: Simple postgresql.conf wizard

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Mark Wong <markwkm(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>, Gregory Stark <stark(at)enterprisedb(dot)com>, Josh Berkus <josh(at)agliodbs(dot)com>, Greg Smith <gsmith(at)gregsmith(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Simple postgresql.conf wizard
Date: 2008-11-20 00:48:33
Message-ID: 200811200048.mAK0mXt12775@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Mark Wong wrote:
> On Thu, Nov 13, 2008 at 11:53 AM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> > Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com> writes:
> >> A lot of people have suggested raising our default_statistics target,
> >> and it has been rejected because there's some O(n^2) behavior in the
> >> planner, and it makes ANALYZE slower, but it's not that crazy.
> >
> > I think everyone agrees it ought to be raised. Where the rubber meets
> > the road is deciding just *what* to raise it to. We've got no
> > convincing evidence in favor of any particular value.
> >
> > If someone actually wanted to put some effort into this, I'd suggest
> > taking some reasonably complex benchmark (maybe TPCH or one of the DBT
> > series) and plotting planner runtime for each query as a function of
> > statistics_target, taking care to mark the breakpoints where it shifted
> > to a better (or worse?) plan due to having better stats.
>
> Almost there... I have a MSA70 plugged into the DL380 I have from HP
> and I'm trying to find time to get my scripts updated to deal with how
> tools have changed over the years... I'm updating the DBT-2 (tpc-c
> kit) I have first

Yes, please test something. I am tired if us saying we need to increase
default_statistics_target, but because we don't know the magic number,
we do nothing release after release.

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2008-11-20 01:04:32 Re: Simple postgresql.conf wizard
Previous Message ITAGAKI Takahiro 2008-11-19 23:51:33 HEAD build failure on win32 mingw