Re: Location for pgstat.stat

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Location for pgstat.stat
Дата
Msg-id 18884.1214942546@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Location for pgstat.stat  (Magnus Hagander <magnus@hagander.net>)
Ответы Re: Location for pgstat.stat  (Magnus Hagander <magnus@hagander.net>)
Re: Location for pgstat.stat  (Decibel! <decibel@decibel.org>)
Список pgsql-hackers
Magnus Hagander <magnus@hagander.net> writes:
> Alvaro Herrera wrote:
>> Well, it doesn't :-)  No database or table will be processed until stat
>> entries are created, and then I think it will first wait until enough
>> activity gathers to take any actions at all.

> That's not actualliy not affected, but it does seem like it wouldn't be
> a very big issue. If one table was just about to be vacuumed or
> analyzed, this would just push it up to twice the threshold, right?

Except you could lather, rinse, repeat indefinitely.

The stats system started out with the idea that the stats were
disposable, but I don't really think that's an acceptable behavior
today.  We don't even have stats_reset_on_server_start anymore.

It doesn't seem to me that it'd be hard to support two locations for the
stats file --- it'd just take another parameter to the read and write
routines.  pgstat.c already knows the difference between a normal write
and a shutdown write ...
        regards, tom lane


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

Предыдущее
От: Greg Smith
Дата:
Сообщение: Re: Location for pgstat.stat
Следующее
От: Tom Lane
Дата:
Сообщение: Commitfest status?