Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Ty9hO-0007pr-OQ for pgsql-bugs@arkaria.postgresql.org; Wed, 23 Jan 2013 23:25:42 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1Ty9hO-0006Zt-8A for pgsql-bugs@arkaria.postgresql.org; Wed, 23 Jan 2013 23:25:42 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Ty9hM-0006Xz-Ef for pgsql-bugs@postgresql.org; Wed, 23 Jan 2013 23:25:40 +0000 Received: from cuda.backbonesystems.ca ([74.221.130.55]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Ty9hJ-0001bQ-OM for pgsql-bugs@postgresql.org; Wed, 23 Jan 2013 23:25:38 +0000 X-ASG-Debug-ID: 1358983534-05b1791095226ba0001-Z0bQUL Received: from bbhubnlb1.backbone.local ([10.1.154.113]) by cuda.backbonesystems.ca with ESMTP id 0PLqFI73AnVkdvyw; Wed, 23 Jan 2013 15:25:34 -0800 (PST) X-Barracuda-Envelope-From: pchan@contigo.com X-Barracuda-RBL-Trusted-Forwarder: 10.1.154.113 Received: from BBMBX.backbone.local ([fe80::c889:3f9d:f6d5:c7d1]) by BBHub001.backbone.local ([::1]) with mapi; Wed, 23 Jan 2013 15:25:35 -0800 From: Pius Chan X-Barracuda-BWL-IP: fe80::c889:3f9d:f6d5:c7d1 X-Barracuda-Apparent-Source-IP: fe80::c889:3f9d:f6d5:c7d1 To: Tom Lane CC: "pgsql-bugs@postgresql.org" Date: Wed, 23 Jan 2013 15:23:50 -0800 Subject: Re: BUG #7819: missing chunk number 0 for toast value 1235919 in pg_toast_35328 Thread-Topic: [BUGS] BUG #7819: missing chunk number 0 for toast value 1235919 in pg_toast_35328 X-ASG-Orig-Subj: RE: [BUGS] BUG #7819: missing chunk number 0 for toast value 1235919 in pg_toast_35328 Thread-Index: Ac35IDIgUrfrgdDBTXaOLkLb5X/adQAoIFyB Message-ID: References: , <4542.1358819585@sss.pgh.pa.us> , <5120.1358914486@sss.pgh.pa.us> In-Reply-To: <5120.1358914486@sss.pgh.pa.us> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US x-tm-as-product-ver: SMEX-8.0.0.4125-6.000.1038-17524.005 x-tm-as-result: No--45.912300-8.000000-31 x-tm-as-user-approved-sender: No x-tm-as-user-blocked-sender: No Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Barracuda-Connect: UNKNOWN[10.1.154.113] X-Barracuda-Start-Time: 1358983534 X-Barracuda-URL: http://cuda.backbonesystems.ca:8000/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at backbonesystems.ca X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=9.0 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.2.120715 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Pg-Spam-Score: -1.9 (-) 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 Hi Tom, We actually may find the cause of the problem. Last night we found two seve= ral old rows in the jms_messages table which should be gone long time ago. = Once we deleted them, everything is back to normal, no more ERROR message. = We suspected these rows are corrupted. Thanks a lot for your help. Pius ________________________________________ From: Tom Lane [tgl@sss.pgh.pa.us] Sent: Tuesday, January 22, 2013 8:14 PM To: Pius Chan Cc: pgsql-bugs@postgresql.org Subject: Re: [BUGS] BUG #7819: missing chunk number 0 for toast value 12359= 19 in pg_toast_35328 Pius Chan writes: > Hi Tom, > Yes, we start seeing this ERROR after upgrade to 9.1.7. The ERROR is from= the "cluster jms_messages" command. Last night, the ERROR happened three = times: > (1) at 00:20:01 > ERROR: missing chunk number 0 for toast value 1239124 in pg_toast_35328 > (2) at 00:25:01 > ERROR: missing chunk number 0 for toast value 1239124 in pg_toast_35328 > (3) at 00:35:01 > ERROR: missing chunk number 0 for toast value 1241022 in pg_toast_35328 > The "cluster jms_messages" runs every 5 minutes. However, so far, it seem= s that the ERROR happens at about mid-night and 35328 is the toast area of = the "jms_message" table: So what else is this application doing around midnight? In particular, it seems like something must've happened between 00:15 and 00:20 to create the problem with OID 1239124, and then something else happened between 00:25 and 00:30 to get rid of it. And then a similar sequence happened between 00:30 and 00:40 involving OID 1241022. Most likely the trigger events are application actions against jms_messages, but we have no info about what. (It's also possible that autovacuums of jms_messages are involved, so you might want to crank up your logging enough so you can see those in the postmaster log.) I had first thought that this might have something to do with the toast-value-processing changes we made in CLUSTER a year or so ago, but a look in the commit logs confirms that those patches were in 9.1.3. So I have no idea what might've broken between 9.1.3 and 9.1.7. We need data, or even better an actual test case. regards, tom lane --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs