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

From Josh Berkus
Subject Re: Simple postgresql.conf wizard
Date
Msg-id 491CACD0.50806@agliodbs.com
Whole thread Raw
In response to Re: Simple postgresql.conf wizard  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Simple postgresql.conf wizard  (Greg Smith <gsmith@gregsmith.com>)
List 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



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Block-level CRC checks
Next
From: Josh Berkus
Date:
Subject: Re: Simple postgresql.conf wizard