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

From Andres Freund
Subject Re: [tiny doc fix] statistics are not retained across immediate shutdown
Date
Msg-id 20130904145633.GB11189@awork2.anarazel.de
Whole thread Raw
In response to Re: [tiny doc fix] statistics are not retained across immediate shutdown  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [tiny doc fix] statistics are not retained across immediate shutdown
List pgsql-hackers
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.

Greetings,

Andres Freund

-- Andres Freund                       http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training &
Services



pgsql-hackers by date:

Previous
From: Josh Berkus
Date:
Subject: Re: The PostgreSQL License requires "LICENSE" file?
Next
From: Jeff Davis
Date:
Subject: Re: [9.4] Make full_page_writes only settable on server start?