Re: Simple postgresql.conf wizard - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Simple postgresql.conf wizard
Date
Msg-id 21034.1226605995@sss.pgh.pa.us
Whole thread Raw
In response to Re: Simple postgresql.conf wizard  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Responses Re: Simple postgresql.conf wizard  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Re: Simple postgresql.conf wizard  ("Mark Wong" <markwkm@gmail.com>)
Re: Simple postgresql.conf wizard  ("Mark Wong" <markwkm@gmail.com>)
List pgsql-hackers
Heikki Linnakangas <heikki.linnakangas@enterprisedb.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.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Block-level CRC checks
Next
From: Heikki Linnakangas
Date:
Subject: Re: Block-level CRC checks