Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Txrjf-0003mT-LG for pgsql-bugs@arkaria.postgresql.org; Wed, 23 Jan 2013 04:14:51 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1Txrje-00031j-Or for pgsql-bugs@arkaria.postgresql.org; Wed, 23 Jan 2013 04:14:50 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Txrjd-00031d-RY for pgsql-bugs@postgresql.org; Wed, 23 Jan 2013 04:14:50 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Txrjc-0001W7-7w for pgsql-bugs@postgresql.org; Wed, 23 Jan 2013 04:14:49 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id r0N4EkOC005121; Tue, 22 Jan 2013 23:14:46 -0500 (EST) From: Tom Lane To: Pius Chan cc: "pgsql-bugs@postgresql.org" Subject: Re: BUG #7819: missing chunk number 0 for toast value 1235919 in pg_toast_35328 In-reply-to: References: , <4542.1358819585@sss.pgh.pa.us> Comments: In-reply-to Pius Chan message dated "Tue, 22 Jan 2013 09:32:20 -0800" Date: Tue, 22 Jan 2013 23:14:46 -0500 Message-ID: <5120.1358914486@sss.pgh.pa.us> 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 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 seems 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 -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs