Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id DDCAB7E4446 for ; Fri, 22 Jun 2012 17:11:43 -0300 (ADT) Received: from vexbert.mr-paradox.net ([2001:470:b:28:f::1]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SiACi-0003YH-D6 for pgsql-performance@postgresql.org; Fri, 22 Jun 2012 20:11:42 +0000 Received: by vexbert.mr-paradox.net (Postfix, from userid 18391) id 2456B84640; Fri, 22 Jun 2012 16:11:26 -0400 (EDT) Date: Fri, 22 Jun 2012 13:11:26 -0700 From: David Kerr To: Tom Lane Cc: pgsql-performance@postgresql.org Subject: Re: "global/pgstat.stat" corrupt Message-ID: <20120622201126.GC98691@mr-paradox.net> References: <20120622184632.GE94572@mr-paradox.net> <17700.1340394540@sss.pgh.pa.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <17700.1340394540@sss.pgh.pa.us> User-Agent: Mutt/1.4.2.3i X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201206/123 X-Sequence-Number: 47149 On Fri, Jun 22, 2012 at 03:49:00PM -0400, Tom Lane wrote: - David Kerr writes: - > I just restored a DB from a cold backup (pg_ctl stop -m fast) - - > When starting the DB I see: - > LOG: corrupted statistics file "global/pgstat.stat" - - Is that repeatable? It wouldn't be too surprising to see this once when - starting from a filesystem backup, if you'd managed to capture a - partially written stats file in the backup. hmm, possibly. it's somewhat worrysome if that file isn't written out what else isn't getting written out. our backups are SAN based snapshots, maybe i need to "sync" prior to the snapshot even with the DB being down. - > When I look at the filesystem I don't see a global/pgstat.stat file but i do see a - > pg_stat_tmp/pgstat.stat - - This is normal --- global/pgstat.stat is only supposed to exist when the - system is shut down. Transient updates are written into pg_stat_tmp/ ah ok - > Are those stats related to pg_stats style statistics? - - No, this file is for the stats collection subsystem, - http://www.postgresql.org/docs/9.1/static/monitoring-stats.html - - regards, tom lane - Oh, hmm thanks. I had looked at that before but must not have fully understood what was going on. That's interesting! Dave