Re: reducing statistics write overhead

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: reducing statistics write overhead
Дата
Msg-id 26106.1232686721@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: reducing statistics write overhead  (Euler Taveira de Oliveira <euler@timbira.com>)
Список pgsql-hackers
Euler Taveira de Oliveira <euler@timbira.com> writes:
> Alvaro Herrera escreveu:
>> Well, the problem is precisely how to size the list.  I don't like the
>> idea of keeping an arbitrary number in memory; it adds another
>> mostly-useless tunable that we'll need to answer questions about for all
>> eternity.

Is it so hard?  In particular, rather than making it a tunable, what say
we freeze the list size at exactly two, ie each AV worker advertises its
current and most recent target table in shared memory.  Other workers
avoid re-vacuuming those.  Then the most work you can "waste" by extra
vacuuming is less than the maximum allowed stats file age.  I'd have no
problem whatsoever in letting that run into multiple seconds, as long
as it doesn't get into minutes or hours.
        regards, tom lane


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

Предыдущее
От: Euler Taveira de Oliveira
Дата:
Сообщение: Re: reducing statistics write overhead
Следующее
От: KaiGai Kohei
Дата:
Сообщение: SE-PostgreSQL Updated Revision (r1460)