pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Vlad Arkhipov <arhipov@dc.baikal.ru>
To: pgsql-bugs@postgresql.org
Subject: BUG #5976: Corrupted pages on the production database
Date: Wed, 13 Apr 2011 03:52:07 GMT
Message-ID: <201104130352.p3D3q78B094334@wwwmaster.postgresql.org> (raw)


The following bug has been logged online:

Bug reference:      5976
Logged by:          Vlad Arkhipov
Email address:      arhipov@dc.baikal.ru
PostgreSQL version: 9.0.3
Operating system:   Red Hat 4.1.2-48, 64-bit
Description:        Corrupted pages on the production database
Details: 

I have recently encounter a problem with the production database. Eventually
pg_dump could not be done.

pg_dump: SQL command failed
pg_dump: Error message from server: ERROR:  could not access status of
transaction 3499806839
DETAIL:  Could not open file "pg_clog/0D09": No such file or directory.
pg_dump: The command was: COPY rolap.agg_lab_invests_registration_month
(service, invest, sampling_place, material, status, rejection_reason,
registration_month, container_type, device, registration_period_1,
execution_period_1, authorization_period_1, overdue_period_1,
completion_period_1, fact_count, quantity, profile_count, service_count,
container_count, reg_period, exec_period, auth_period, over_period,
comp_period) TO stdout;

A simple SELECT * FROM rolap.agg_lab_invests_registration_month raises the
same error.

There is also a stand-by server (streaming replication) which does not have
this error. I've elaborated on this issue a bit and found 2 corrupted pages
in the file of relation. The first one is semi-corrupted, one half of it is
correct, but another part contains data from another database table. The
second one is completely corrupted and contains data from the same table as
the corrupted part of the first page.



view thread (4+ messages)  latest in thread

Message-ID: <201104130352.p3D3q78B094334@wwwmaster.postgresql.org>
Permalink:  ../201104130352.p3D3q78B094334@wwwmaster.postgresql.org/
Also on:    postgresql.org/message-id/201104130352.p3D3q78B094334@wwwmaster.postgresql.org

 · 

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: arhipov@dc.baikal.ru
  Subject: Re: BUG #5976: Corrupted pages on the production database
  In-Reply-To: <201104130352.p3D3q78B094334@wwwmaster.postgresql.org>
  References: <201104130352.p3D3q78B094334@wwwmaster.postgresql.org>

* 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