pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: 沈前卫 <shenqw@163.net>
To: Euler Taveira <euler@timbira.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #7504: corrupted statistics file "pg_stat_tmp/pgstat.stat"
Date: Mon, 27 Aug 2012 14:16:01 +0800
Message-ID: <503B10A1.8050605@163.net> (raw)
In-Reply-To: <50378E29.2000704@timbira.com>
References: <E1T4kNO-0001Q6-FH@wrigleys.postgresql.org>
	<50378E29.2000704@timbira.com>

My English is very poor, below Google Translate:


"It is possible but ... Did you see any ERROR message (s) related to 
statistics
collector before those ones? "
-------
Found no other error messages related to this. Disk hardware is also normal.



According to my observation, is the process of "autovacuum launcher 
process" will prompt the above error, if error, suggesting that the 
number of errors is relatively fixed, 182, such as 2-182, the next 
prompt serial number becomes 183-363, and then the next time on 364-544.

I Postgresql code are not familiar with, and probably looked, the "stats 
collector process" process to create a "pgstat.tmp" write data, and then 
rename the "pgstat.stat" atomic operations, but if "autovacuum launcher 
process" is being read "pgstat.stat", "stats collector process" at a 
time when the rename operation if integrated autovacuum launcher process 
"read the remaining old files or new data file? Is not a problem. If it 
is to solve this problem need to process synchronization mechanism to 
solve. Only do not have any process to read the file being read 
"pgstat.stat", this time to rename operation. This is also the 
possibility of error, but the probability is very small. If you want to 
completely eliminate this error, you need better synchronization mechanism.


于 2012-8-24 22:22, Euler Taveira 写道:
> On 24-08-2012 00:16, shenqw@163.net wrote:
>> Maybe this is a bug.
>> if stats collector process don't product pg_stat_tmp/pgstat.stat file, the
>> autovacuum launcher process will output those WARNING message?
>>
> It is possible but... Did you see any ERROR message(s) related to statistics
> collector before those ones? To solver your problem, you can remove the
> pgstat.stat file that it will be created again next time server starts. Of
> course, you will loose the statistics, hence remember to VACUUM ANALYZE your
> cluster.
>
>






view thread (3+ messages)

Message-ID: <503B10A1.8050605@163.net>
Permalink:  ../503B10A1.8050605@163.net/
Also on:    postgresql.org/message-id/503B10A1.8050605@163.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: shenqw@163.net, euler@timbira.com
  Subject: Re: BUG #7504: corrupted statistics file "pg_stat_tmp/pgstat.stat"
  In-Reply-To: <503B10A1.8050605@163.net>
  References: <E1T4kNO-0001Q6-FH@wrigleys.postgresql.org> <50378E29.2000704@timbira.com> <503B10A1.8050605@163.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox