Stats getting corrupted

From: Devendra Yadav <devendraydba(at)gmail(dot)com>
To: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Stats getting corrupted
Date: 2018-12-20 03:09:00
Message-ID: CAGQOD0mu3u-k3oRJdrhrJJwBNK0An7nG02jUypgqiMxoRvZ5Ug@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Dear All,

The stats file in *pg_stat_tmp *are getting corrupted. Even earlier the
files in *pg_stat* got corrupted. They show ?? ?? when you list the files
in folder. Also we can see them in the error log.
it says " *could not open statistics file 'pg_stat_tml/db_0.tmp': to
'pg_stat_tmp/db_0.stat': Input/output error".*

After doing e2fsck (file system scan ) it is fixed but that needs downtime
and also it removes the file. What is the impact if the file is being
removed ?

Has anybody faced such issue or can guide me what can be done and how it
can be avoided in near future ?

Thanks and Regards,
Devendra Yadav

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Prince Pathria 2018-12-20 06:51:41 Re: Multi master implementation
Previous Message Ron 2018-12-20 02:24:07 Re: Multi master implementation