Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fftF7-0008O2-LB for pgsql-admin@arkaria.postgresql.org; Wed, 18 Jul 2018 20:40:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fftF5-0006fF-RA for pgsql-admin@arkaria.postgresql.org; Wed, 18 Jul 2018 20:40:11 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fftF5-0006f6-Jq for pgsql-admin@lists.postgresql.org; Wed, 18 Jul 2018 20:40:11 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fftF2-0000id-OB for pgsql-admin@lists.postgresql.org; Wed, 18 Jul 2018 20:40:11 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w6IKe5Hx023932; Wed, 18 Jul 2018 16:40:05 -0400 From: Tom Lane To: Alvaro Herrera cc: Naveen Kumar , pgsql-admin@lists.postgresql.org Subject: Re: ERROR: unexpected chunk number 452 (expected 0) for toast value 94674063 in pg_toast_56980977 In-reply-to: <20180718195850.axhzokgbggoxpcmr@alvherre.pgsql> References: <20180718195850.axhzokgbggoxpcmr@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Wed, 18 Jul 2018 15:58:50 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <23930.1531946405.1@sss.pgh.pa.us> Date: Wed, 18 Jul 2018 16:40:05 -0400 Message-ID: <23931.1531946405@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Alvaro Herrera writes: > On 2018-Jul-18, Naveen Kumar wrote: >> What could be the reason for bellow errors. Can one help me to fix this? >> Error message from server: ERROR: unexpected chunk number >> 452 (expected 0) for toast value 94674063 in pg_toast_56980977 > There are two related bugfixes in 9.6.9 (and all other versions released > with it). Maybe you'd do well to upgrade to the latest minor of > whatever supported branch you're using, and then let's discuss more. It would certainly be helpful to upgrade to latest minor if not there already, not to mention tell us which PG version this is. But I'm not really convinced that the 0408e1ed5 bug matches this symptom. That would've led to duplicate TOAST rows, but it's hard to see how duplicates could produce the above. I'm inclined to think that this is either a corrupt toast index (which'd be fixable with REINDEX) or actually-missing TOAST data. Either way, if it's due to a PG bug rather than storage system malfeasance, it's some other bug than that one. regards, tom lane