Re: [bug fix] Stats collector is not restarted on the standby

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: [bug fix] Stats collector is not restarted on the standby
Дата
Msg-id CAB7nPqRpjoQ=2xqGXd=YAgKMSx3v46qRT=hf5GMNLygK6UBzuQ@mail.gmail.com
обсуждение исходный текст
Ответ на [bug fix] Stats collector is not restarted on the standby  ("Tsunakawa, Takayuki" <tsunakawa.takay@jp.fujitsu.com>)
Ответы Re: [bug fix] Stats collector is not restarted on the standby  ("Tsunakawa, Takayuki" <tsunakawa.takay@jp.fujitsu.com>)
Re: [bug fix] Stats collector is not restarted on the standby  (Kuntal Ghosh <kuntalghosh.2007@gmail.com>)
Список pgsql-hackers
On Wed, Oct 26, 2016 at 2:46 PM, Tsunakawa, Takayuki
<tsunakawa.takay@jp.fujitsu.com> wrote:
> If the stats collector is forcibly terminated on the standby in streaming replication configuration, it won't be
restarteduntil the standby is promoted to the primary.  The attached patch restarts the stats collector on the
standby.
>
> FYI, when the stats collector is down, SELECTs against the statistics views get stale data with the following
message.
>
> LOG:  using stale statistics instead of current ones because stats collector is not responding
> STATEMENT:  select * from pg_stat_user_tables

Oops. This could be a problem for some applications... As far as I can
see and after playing with it, your patch looks correct.
-- 
Michael



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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: Proposal: scan key push down to heap [WIP]
Следующее
От: Daniel Gustafsson
Дата:
Сообщение: Small typo in pageinspect heapfuncs