Re: Simple postgresql.conf wizard

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: Simple postgresql.conf wizard
Дата
Msg-id 491CACD0.50806@agliodbs.com
обсуждение исходный текст
Ответ на Re: Simple postgresql.conf wizard  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Simple postgresql.conf wizard  (Greg Smith <gsmith@gregsmith.com>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Block-level CRC checks
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: Simple postgresql.conf wizard