Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WDKkE-0000Gj-GQ for pgsql-bugs@arkaria.postgresql.org; Tue, 11 Feb 2014 21:19:54 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WDKkE-00036U-17 for pgsql-bugs@arkaria.postgresql.org; Tue, 11 Feb 2014 21:19:54 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WDKkD-00036O-D0 for pgsql-bugs@postgresql.org; Tue, 11 Feb 2014 21:19:53 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WDKkB-00059w-4r for pgsql-bugs@postgresql.org; Tue, 11 Feb 2014 21:19:52 +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 s1BLJojT030155; Tue, 11 Feb 2014 16:19:50 -0500 From: Tom Lane To: kevin.hughes@uk.fujitsu.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #9187: corrupt toast tables In-reply-to: <20140211162408.2713.81446@wrigleys.postgresql.org> References: <20140211162408.2713.81446@wrigleys.postgresql.org> Comments: In-reply-to kevin.hughes@uk.fujitsu.com message dated "Tue, 11 Feb 2014 16:24:08 +0000" Date: Tue, 11 Feb 2014 16:19:50 -0500 Message-ID: <30154.1392153590@sss.pgh.pa.us> X-Pg-Spam-Score: -2.6 (--) 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 kevin.hughes@uk.fujitsu.com writes: > Sometime between the morning of the 31st of January and the morning of the > 3rd of February the database was corrupted. During that period there was > little or no activity - other than the nightly postgres dump > Looking at various logs we found this error: ERROR: unexpected chunk number > 110 (expected 106) for toast value 223972 in pg_toast_80768; FWIW, this type of error is sometimes due to corruption in the toast table's index, in which case you can fix it with a REINDEX. I'd try that before deleting data, anyway. Hard to tell what the actual underlying cause is :-(. I do note that you're running a PG version that's a year or so old. It'd be prudent to think about updating to 9.2.7 when that comes out next week. 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