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 1orgxD-0005ru-Tj for pgsql-general@arkaria.postgresql.org; Sun, 06 Nov 2022 14:48:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1orgxC-00036D-88 for pgsql-general@arkaria.postgresql.org; Sun, 06 Nov 2022 14:48:54 +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 1orgxB-000362-Tb for pgsql-general@lists.postgresql.org; Sun, 06 Nov 2022 14:48:53 +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 1orgx5-0002tv-0x for pgsql-general@postgresql.org; Sun, 06 Nov 2022 14:48:53 +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 2A6EmWEW3010780; Sun, 6 Nov 2022 09:48:32 -0500 From: Tom Lane To: Stefan Froehlich cc: pgsql-general@postgresql.org Subject: Re: server process (PID 2964738) was terminated by signal 11: Segmentation fault In-reply-to: <20221106143544.GA4940@static.231.150.9.176.clients.your-server.de> References: <20221106111820.GA26442@static.231.150.9.176.clients.your-server.de> <3007238.1667743988@sss.pgh.pa.us> <20221106143544.GA4940@static.231.150.9.176.clients.your-server.de> Comments: In-reply-to Stefan Froehlich message dated "Sun, 06 Nov 2022 15:35:44 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3010778.1667746112.1@sss.pgh.pa.us> Date: Sun, 06 Nov 2022 09:48:32 -0500 Message-ID: <3010779.1667746112@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Stefan Froehlich writes: > I am using v13, but well: > | # create extension amcheck; > | # select oid, relname from pg_class where relname ='faultytablename_pkey'; > | [returns oid 537203] > | # select bt_index_check(537203, true); > | server closed the connection unexpectedly Oh ... up through v13, amcheck lacks any functions to check heaps, only indexes, so I guess it won't help you much. You could try reindexing, but if pg_dump is failing that's a good sign you have heap corruption not (or at least not only) index corruption. Another idea is to try using contrib/pageinspect to examine each page of the table. Its output is just gobbledegook to most people, but there's a good chance it'd fail visibly on the corrupted page(s). Also, please read https://wiki.postgresql.org/wiki/Corruption if you didn't already. regards, tom lane