Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j3ehX-00075D-LH for pgsql-general@arkaria.postgresql.org; Mon, 17 Feb 2020 11:36:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j3ehV-0005PF-I2 for pgsql-general@arkaria.postgresql.org; Mon, 17 Feb 2020 11:36:33 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1j3ehV-0005Mq-7s for pgsql-general@lists.postgresql.org; Mon, 17 Feb 2020 11:36:33 +0000 Received: from mail.arcict.com ([91.183.106.63] helo=arcict.com) by magus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1j3ehN-0006mq-So for pgsql-general@postgresql.org; Mon, 17 Feb 2020 11:36:31 +0000 Received: from [192.163.1.153] ([192.163.1.153] verified) by arcict.com (CommuniGate Pro SMTP 6.2.12) with ESMTP id 4544606 for pgsql-general@postgresql.org; Mon, 17 Feb 2020 12:36:24 +0100 From: "Nick Renders" To: pgsql-general Subject: Re: PL/pgSQL question about EXCEPTION clause & corrupt records Date: Mon, 17 Feb 2020 12:36:24 +0100 X-Mailer: MailMate (1.13.1r5676) Message-ID: In-Reply-To: References: <4DF3093D-C58F-4DC5-BE22-49F4D9630594@arcict.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi Jeremy, This happend on PostgreSQL v9.6 which crashed 2 weeks ago. Since then we have upgraded and restored our server, but my example is from the older, corrupt database. Nick On 15 Feb 2020, at 5:30, Jeremy Schneider wrote: >> On Feb 14, 2020, at 04:39, Nick Renders wrote: >> >> I get the following message: >> >> ERROR: missing chunk number 0 for toast value 8289525 in >> pg_toast_5572299 > > What version of PostgreSQL are you running? I’ve seen this a number > of times the past couple years; curious if the lurking bug is still > observed in latest versions. > > -Jeremy > > Sent from my TI-83