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 1n02nG-0000zJ-Ed for pgsql-general@arkaria.postgresql.org; Wed, 22 Dec 2021 14:40:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1n02nF-0005ya-9Z for pgsql-general@arkaria.postgresql.org; Wed, 22 Dec 2021 14:40:37 +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 1n02nE-0005yR-Vm for pgsql-general@lists.postgresql.org; Wed, 22 Dec 2021 14:40:36 +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 1n02nC-0001kR-4N for pgsql-general@lists.postgresql.org; Wed, 22 Dec 2021 14:40:36 +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 1BMEeU3L237410; Wed, 22 Dec 2021 09:40:30 -0500 From: Tom Lane To: Paulo Silva cc: pgsql-general@lists.postgresql.org Subject: Re: Postgresql crashing during pg_dump In-reply-to: References: Comments: In-reply-to Paulo Silva message dated "Wed, 22 Dec 2021 14:13:42 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <237408.1640184030.1@sss.pgh.pa.us> Date: Wed, 22 Dec 2021 09:40:30 -0500 Message-ID: <237409.1640184030@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Paulo Silva writes: > I have a huge table with 141456059 records on a PostgreSQL 10.18 database. > When I try to do a pg_dump on that table, postgresql gives a segfault, > displaying this message: > 2021-12-22 14:08:03.437 UTC [15267] LOG: server process (PID 25854) was > terminated by signal 11: Segmentation fault What this sounds like is corrupt data somewhere in that table. There's some advice about dealing with such cases here: https://wiki.postgresql.org/wiki/Corruption If this is extremely valuable data, you might prefer to hire somebody who specializes in data recovery, rather than trying to handle it yourself. I'd still follow the wiki page's "first response" advice, ie take a physical backup ASAP. regards, tom lane