Re: A very long running query....

Поиск
Список
Период
Сортировка
От Craig Ringer
Тема Re: A very long running query....
Дата
Msg-id 500A620D.4030505@ringerc.id.au
обсуждение исходный текст
Ответ на Re: A very long running query....  (Ioannis Anagnostopoulos <ioannis@anatec.com>)
Список pgsql-performance
On 07/21/2012 06:19 AM, Ioannis Anagnostopoulos wrote:

On this Ubuntu installation the default_statistics_target = 1000 and not 100. Do you think that this might be an issue?

Nope. You should generally avoid setting default_statistics_target too high anyway; leave it where it is and use ALTER TABLE ... ALTER COLUMN ... SET STATISTICS to raise the targets on columns where you're seeing bad statistics estimates.

http://www.postgresql.org/docs/9.1/static/sql-altertable.html

Also make sure autovaccum is running frequently so it keeps the stats up to date.

--
Craig Ringer


В списке pgsql-performance по дате отправления:

Предыдущее
От: Ioannis Anagnostopoulos
Дата:
Сообщение: Re: A very long running query....
Следующее
От: Craig Ringer
Дата:
Сообщение: Re: query overhead