On Wed, Sep 4, 2013 at 11:56 PM, Andres Freund <and...@2ndquadrant.com> wrote: > On 2013-09-04 10:53:19 -0400, Tom Lane wrote: >> "Tsunakawa, Takayuki" <tsunakawa.ta...@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 -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers