Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XA30B-0003fl-58 for pgsql-bugs@arkaria.postgresql.org; Wed, 23 Jul 2014 20:19:03 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XA309-00041l-Ny for pgsql-bugs@arkaria.postgresql.org; Wed, 23 Jul 2014 20:19:01 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1X9qvC-0005Wz-3J for pgsql-bugs@postgresql.org; Wed, 23 Jul 2014 07:25:06 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1X9qv8-0000vR-Hw for pgsql-bugs@postgresql.org; Wed, 23 Jul 2014 07:25:05 +0000 MIME-Version: 1.0 Subject: BUG #11025: could not access status of transaction 7 To: pgsql-bugs@postgresql.org From: shiguangsheng@huawei.com Date: Wed, 23 Jul 2014 07:24:20 +0000 Message-ID: <20140723072420.27765.68794@wrigleys.postgresql.org> X-Pg-Spam-Score: -1.2 (-) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 11025 Logged by: Paul Email address: shiguangsheng@huawei.com PostgreSQL version: Unsupported/Unknown Operating system: Suse 10 Description: PostgreSQL version: 8.3.17 I added a function that is used to scan the specified table. An error occurred while performing this function, this problem occurs only once. Error log is as follows(When problems occur the minimal CLOG is 04A0): AutoVacWorker 30562 2014-07-01 21:37:16.122 GMTERROR: could not access status of transaction 7 slru.c(846 SlruReportIOError) AutoVacWorker 30562 2014-07-01 21:37:16.122 GMTDETAIL: Could not open file "pg_clog/0000": No such file or directory. AutoVacWorker 30562 2014-07-01 21:37:16.122 GMTLOG: relation "pg_tablespace" block 1 is corrupted pgstattuple.c(746 pgstat_heap) Function as follows: if (InvalidTransactionId == xmin) { xminInvalid = true; } else { xminCommit = TransactionIdDidCommit(xmin); } if (InvalidTransactionId == xmax) { xmaxInvalid = true; } else { xmaxCommit = TransactionIdDidCommit(xmax); } The current records of pg_tablespace: omu=# select cmin, cmax, xmin, xmax, oid, ctid, session_id, tableoid, * from pg_tablespace; cmin | cmax | xmin | xmax | oid | ctid | session_id | tableoid | spcname | spcowner | spclocation | spcacl | spcmaxsize ------+------+------+------------+---------+--------+------------+----------+------------+----------+-----------------------------------------+------------------------------+------------ 0 | 0 | 1 | 0 | 1663 | (0,1) | 1663 | 1213 | pg_default | 10 | | | 0 | 0 | 1 | 0 | 1664 | (0,2) | 1664 | 1213 | pg_global | 10 | | | 4 | 4 | 2 | 0 | 24576 | (0,4) | 24576 | 1213 | common | 16385 | /opt/PROTON/data/tablespaces/common | {cgp=C/cgp,common=C/cgp} | 200 4 | 4 | 2 | 0 | 24764 | (0,6) | 24764 | 1213 | pds | 16385 | /opt/PROTON/data/tablespaces/pds | {cgp=C/cgp,pds=C/cgp} | 1024 0 | 0 | 2 | 0 | 44596 | (0,10) | 44596 | 1213 | rsm | 16385 | /opt/PROTON/data/tablespaces/RSM | {cgp=C/cgp,rsm=C/cgp} | 1024 4 | 4 | 2 | 0 | 44599 | (0,12) | 44599 | 1213 | rsm_temp | 16385 | /opt/PROTON/data/tablespaces/RSM_TEMP | {cgp=C/cgp,rsm_temp=C/cgp} | 1024 0 | 0 | 2 | 1438322587 | 1062306 | (0,23) | 1062306 | 1213 | cgp_2 | 16385 | /opt/PROTON/data/tablespaces/CGP_2 | {cgp=C/cgp,cgp_2=C/cgp} | 2048 4 | 4 | 2 | 1438198033 | 1076693 | (0,25) | 1076693 | 1213 | pds_ne0_2 | 16385 | /opt/PROTON/data/tablespaces/PDS_NE0_2 | {cgp=C/cgp,pds_ne0_2=C/cgp} | 2048 4 | 4 | 2 | 0 | 1079204 | (0,29) | 1079204 | 1213 | ne91_2 | 16385 | /opt/PROTON/data/tablespaces/NE91_2 | {cgp=C/cgp,ne91_2=C/cgp} | 10240 0 | 0 | 2 | 1438198014 | 1086436 | (0,31) | 1086436 | 1213 | pds_ne91_2 | 16385 | /opt/PROTON/data/tablespaces/PDS_NE91_2 | {cgp=C/cgp,pds_ne91_2=C/cgp} | 10240 0 | 0 | 2 | 1436886388 | 1089045 | (0,35) | 1089045 | 1213 | ne81_2 | 16385 | /opt/PROTON/data/tablespaces/NE81_2 | {cgp=C/cgp,ne81_2=C/cgp} | 1024 0 | 0 | 2 | 1438198230 | 1097644 | (0,37) | 1097644 | 1213 | pds_ne81_2 | 16385 | /opt/PROTON/data/tablespaces/PDS_NE81_2 | {cgp=C/cgp,pds_ne81_2=C/cgp} | 10240 (12 rows) -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs