Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sAAj4-0080iT-0P for pgsql-bugs@arkaria.postgresql.org; Thu, 23 May 2024 15:51:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1sAAj3-00Drhd-KL for pgsql-bugs@arkaria.postgresql.org; Thu, 23 May 2024 15:51:29 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sAAj3-00DrhV-C9 for pgsql-bugs@lists.postgresql.org; Thu, 23 May 2024 15:51:29 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sAAj0-001dvt-KP for pgsql-bugs@lists.postgresql.org; Thu, 23 May 2024 15:51:28 +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 44NFpM4r355040; Thu, 23 May 2024 11:51:23 -0400 From: Tom Lane To: philippe.loustaunau@developpement-durable.gouv.fr cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #18475: pg_dump: "Error Segmentation fault" In-reply-to: <18475-efdc58a8878ef387@postgresql.org> References: <18475-efdc58a8878ef387@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Thu, 23 May 2024 11:37:58 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <355038.1716479482.1@sss.pgh.pa.us> Date: Thu, 23 May 2024 11:51:22 -0400 Message-ID: <355039.1716479482@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk PG Bug reporting form writes: > We have in our services several PostgreSQL servers from the Ubuntu 20.04.1 > distribution (PostgreSQL 12.18 on Ubuntu 20.04.1) > We note that the backup actions of our databases including partitioned > tables cause a pg_dump error with the message "Segmentation error" > However, it has not yet been possible to reproduce it on a PostgreSQL 12 > server under Windows. Servers running Ubuntu 18.04 with PostgreSQL 10 also > appear unaffected. > Backup command: pg_dump -U postgres -F c -C -c -w $base > ${target}. The > error persists when directory format is used instead of custom. > After tests, it turns out that excluding the partitioned table from the > backup eliminates the error. It's impossible to do anything with this report: you've not provided enough information for someone else to reproduce the crash, or even guess at the cause. (It's certainly not the case that pg_dump will fail on any partitioned table.) Ideally, if you could provide some table definitions that cause pg_dump to misbehave, I'm sure we could find the problem. Failing that, a stack trace from the crash would help some. regards, tom lane