Re: [HACKERS] Stats processor not restarting

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] Stats processor not restarting
Дата
Msg-id 25538.1174538023@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [HACKERS] Stats processor not restarting  (Bruce Momjian <bruce@momjian.us>)
Ответы Re: [HACKERS] Stats processor not restarting  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-patches
Bruce Momjian <bruce@momjian.us> writes:
> Tom Lane wrote:
>> Not really, but maybe it would be sensible to reset last_pgstat_start_time
>> when doing a database-wide restart?

> You mean like this, attached?

I'd be fairly surprised if resetting the variable in the child process
had any effect on the postmaster...

I think a correct fix would involve exposing either the variable or a
routine to zero it from pgstat.c, and having postmaster.c do that at
the points where it intentionally SIGQUITs the stats collector.

            regards, tom lane

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] Stats processor not restarting
Следующее
От: Tom Lane
Дата:
Сообщение: Re: patch adding new regexp functions