Re: [tiny doc fix] statistics are not retained across immediate shutdown - Mailing list pgsql-hackers

From Fujii Masao
Subject Re: [tiny doc fix] statistics are not retained across immediate shutdown
Date
Msg-id CAHGQGwHmhckhzhv1Yr9-+dJ9AvaWnTYFjZGVjffoNhA1Cc8goQ@mail.gmail.com
Whole thread Raw
In response to Re: [tiny doc fix] statistics are not retained across immediate shutdown  (Andres Freund <andres@2ndquadrant.com>)
List 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 by date:

Previous
From: Quan Zongliang
Date:
Subject: Re: improve Chinese locale performance
Next
From: wangshuo@highgo.com.cn
Date:
Subject: Re: Is it necessary to rewrite table while increasing the scale ofdatatype numeric???