Re: [tiny doc fix] statistics are not retained across immediate shutdown

Поиск
Список
Период
Сортировка
От Fujii Masao
Тема Re: [tiny doc fix] statistics are not retained across immediate shutdown
Дата
Msg-id CAHGQGwHmhckhzhv1Yr9-+dJ9AvaWnTYFjZGVjffoNhA1Cc8goQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [tiny doc fix] statistics are not retained across immediate shutdown  (Andres Freund <andres@2ndquadrant.com>)
Список pgsql-hackers
On Wed, Sep 4, 2013 at 11:56 PM, Andres Freund <andres@2ndquadrant.com> wrote:
> On 2013-09-04 10:53:19 -0400, Tom Lane wrote:
>> "Tsunakawa, Takayuki" <tsunakawa.takay@jp.fujitsu.com> writes:
>> > I propose a tiny fix to clarify this.  Please find the attached patch.
>>
>> That's not an accurate description of what happens, though.
>> AFAIR, we do not throw away pg_stats files as a result of recovery.
>
> StartupXLOG() does a pgstat_reset_all() in the if (InRecovery) branch.

Yes. And this causes one problem that the statistics data would be reset
at the start after the clean shutdown of the standby server.

Regards,

-- 
Fujii Masao



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

Предыдущее
От: Quan Zongliang
Дата:
Сообщение: Re: improve Chinese locale performance
Следующее
От: wangshuo@highgo.com.cn
Дата:
Сообщение: Re: Is it necessary to rewrite table while increasing the scale ofdatatype numeric???