From: | Josh Berkus <josh(at)agliodbs(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Gregory Stark <stark(at)enterprisedb(dot)com>, Greg Smith <gsmith(at)gregsmith(dot)com>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Simple postgresql.conf wizard |
Date: | 2008-11-13 22:40:16 |
Message-ID: | 491CACD0.50806@agliodbs.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Tom,
> Even though we all agree default_statistics_target = 10 is too low,
> proposing a 40X increase in the default value requires more evidence
> than this. In particular, the prospect of a 1600-fold increase in
> the typical cost of eqjoinsel() is a mite scary.
It's a *completely* acceptable tradeoff for a *data warehousing*
database, where queries take multiple seconds to execute even under the
best plans ... and minutes or hours for the worst. And that's what I'm
proposing a value of 400 for, if you read my posting rather than just
Greg's outraged response.
(and yes, I've done this for multiple *production* data warehouses and
the results have been good)
For a web database, keep it at 10. It might turn out that an increase
to 25 or 50 would benefit even web applications, but we don't yet have
the testing resources to determine that.
Of *course* it would be better for the DBA to go through and set
statistics column-by-column. But few will.
--Josh
From | Date | Subject | |
---|---|---|---|
Next Message | Josh Berkus | 2008-11-13 22:42:49 | Re: Simple postgresql.conf wizard |
Previous Message | Tom Lane | 2008-11-13 22:31:59 | Re: Block-level CRC checks |