On 2013-09-04 10:53:19 -0400, Tom Lane wrote:
> "Tsunakawa, Takayuki" <tsunakawa(dot)takay(at)jp(dot)fujitsu(dot)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.
Greetings,
Andres Freund
--
Andres Freund http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services