Re: Memory usage during vacuum

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Memory usage during vacuum
Дата
Msg-id 13252.1080239898@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Memory usage during vacuum  (Shelby Cain <alyandon@yahoo.com>)
Ответы Re: Memory usage during vacuum
Список pgsql-general
Shelby Cain <alyandon@yahoo.com> writes:
> It still decided to sample 150000 rows.  Am I missing
> something obvious here?  Shouldn't fewer rows be
> sampled when I set the collection target to 1?

The sample size is 300 rows times the largest per-column analysis
target, where default_statistics_target is used if the recorded
per-column setting is -1.  I would say that you have set a target of 500
for at least one of the columns of that table, using ALTER TABLE SET
STATISTICS.  Try this to see which:

select attname, attstattarget from pg_attribute
where attrelid = 'table_name_here'::regclass;

            regards, tom lane

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

Предыдущее
От: Jan Wieck
Дата:
Сообщение: Re: 7.4.2 on Solaris 9 - Error
Следующее
От: Vivek Khera
Дата:
Сообщение: Re: Perl DBIx::SearchBuilder and pg_atoi: zero-length string?