Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kMYGe-0001Y1-FW for pgsql-bugs@arkaria.postgresql.org; Sun, 27 Sep 2020 15:07:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kMYG6-0007gb-VB for pgsql-bugs@arkaria.postgresql.org; Sun, 27 Sep 2020 15:06:38 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kMYG6-0007gU-PK for pgsql-bugs@lists.postgresql.org; Sun, 27 Sep 2020 15:06:38 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kMYFz-0000Zn-Lx for pgsql-bugs@lists.postgresql.org; Sun, 27 Sep 2020 15:06:37 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 08RF61Te110051; Sun, 27 Sep 2020 11:06:02 -0400 From: Tom Lane To: 15103271955@163.com cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #16638: Some tables in the database cannot be opened In-reply-to: <16638-b64b25b9494d1aca@postgresql.org> References: <16638-b64b25b9494d1aca@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Sun, 27 Sep 2020 06:53:18 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <110049.1601219161.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Sun, 27 Sep 2020 11:06:01 -0400 Message-ID: <110050.1601219161@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk PG Bug reporting form writes: > The following bug has been logged on the website: > Bug reference: 16638 > Logged by: 雷 赵 > Email address: 15103271955@163.com > PostgreSQL version: 9.6.12 > Operating system: Ubuntu > Description: > [GENERAL] ERROR: unexpected chunk number 0 (expected 1) for toast value > 76753264 in pg_toast_10920100 This symptom matches an old bug that was fixed in PG 9.6.9. So (1) Are you quite sure your server is running 9.6.12, and not some older minor release? Check "SELECT version()" to be certain. (2) According to the release note about it, any pre-existing corruption of this sort could be repaired by vacuuming affected tables. So maybe you just need to do that. regards, tom lane