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

From: "Tsunakawa, Takayuki" <tsunakawa(dot)takay(at)jp(dot)fujitsu(dot)com>
To: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: [tiny doc fix] statistics are not retained across immediate shutdown
Date: 2013-09-04 04:11:09
Message-ID: 0A3221C70F24FB45833433255569204D08CCC1A2@G01JPEXMBYT03
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

In the following page, statistics are kept across server restarts:

http://www.postgresql.org/docs/current/static/monitoring-stats.html

"When the server shuts down, a permanent copy of the statistics data is stored in the global subdirectory, so that statistics can be retained across server restarts."

However, statistics are not retained after immediate shutdown (pg_ctl stop -mi). You may say "pg_ctl stop -mi is not a shutdown but an abort, so the sentence is not wrong", but it's an "immediate shutdown" and one mode of shutdown.

I propose a tiny fix to clarify this. Please find the attached patch.

I'd like this to be backported at least 9.2. Thanks.

Regards, Takayuki Tsunakawa

Attachment Content-Type Size
stats_reset_in_recovery.patch application/octet-stream 1.3 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tomonari Katsumata 2013-09-04 04:20:35 Re: The PostgreSQL License requires "LICENSE" file?
Previous Message wangshuo 2013-09-04 04:08:48 Is it necessary to rewrite table while increasing the scale of datatype numeric?