Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 5465B1337B80 for ; Wed, 13 Apr 2011 00:52:09 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 29746-04 for ; Wed, 13 Apr 2011 03:52:09 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by mail.postgresql.org (Postfix) with ESMTP id 909AE1337B47 for ; Wed, 13 Apr 2011 00:52:08 -0300 (ADT) Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by wwwmaster.postgresql.org (8.14.3/8.14.3) with ESMTP id p3D3q7JI094335 for ; Wed, 13 Apr 2011 03:52:07 GMT (envelope-from www@wwwmaster.postgresql.org) Received: (from www@localhost) by wwwmaster.postgresql.org (8.14.3/8.14.3/Submit) id p3D3q78B094334; Wed, 13 Apr 2011 03:52:07 GMT (envelope-from www) Date: Wed, 13 Apr 2011 03:52:07 GMT Message-Id: <201104130352.p3D3q78B094334@wwwmaster.postgresql.org> To: pgsql-bugs@postgresql.org Subject: BUG #5976: Corrupted pages on the production database From: "Vlad Arkhipov" Content-Type: text/plain; charset=utf-8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 201104/63 X-Sequence-Number: 29982 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.