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

From: Andres Freund <andres(at)2ndquadrant(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "Tsunakawa, Takayuki" <tsunakawa(dot)takay(at)jp(dot)fujitsu(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [tiny doc fix] statistics are not retained across immediate shutdown
Date: 2013-09-04 14:56:33
Message-ID: 20130904145633.GB11189@awork2.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jeff Davis 2013-09-04 14:57:15 Re: [9.4] Make full_page_writes only settable on server start?
Previous Message Josh Berkus 2013-09-04 14:54:40 Re: The PostgreSQL License requires "LICENSE" file?