Re: Disk corruption detection - Mailing list pgsql-general

From Qingqing Zhou
Subject Re: Disk corruption detection
Date
Msg-id e6ihko$1eo3$1@news.hub.org
Whole thread Raw
In response to Disk corruption detection  (Florian Weimer <fw@deneb.enyo.de>)
List pgsql-general
"Florian Weimer" <fw@deneb.enyo.de> wrote
>
> Anyway, how would be the chances for PostgreSQL to detect such a
> corruption on a heap or index data file?  It's typically hard to
> detect this at the application level, so I don't expect wonders.  I'm
> just curious if using PostgreSQL would have helped to catch this
> sooner.
>

PostgreSQL will only detect these corruption when it uses that heap or index
page. So a safe way to is to dump/restore your database if you suspect there
is some inconsistency happened.

Regards,
Qingqing



pgsql-general by date:

Previous
From: "Qingqing Zhou"
Date:
Subject: Re: Insert into partition table hangs
Next
From: "Qingqing Zhou"
Date:
Subject: Re: Ever increasing OIDs - gonna run out soon?