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 1oH3vE-00079F-3b for pgsql-general@arkaria.postgresql.org; Thu, 28 Jul 2022 13:51:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oH3vC-0004jp-WC for pgsql-general@arkaria.postgresql.org; Thu, 28 Jul 2022 13:51:27 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oH3vC-0004jg-K5 for pgsql-general@lists.postgresql.org; Thu, 28 Jul 2022 13:51:26 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oH3vA-0004EI-FT for pgsql-general@lists.postgresql.org; Thu, 28 Jul 2022 13:51:25 +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 26SDpN0p3384473; Thu, 28 Jul 2022 09:51:23 -0400 From: Tom Lane To: karol.malinowski@trustedeyes.pl cc: pgsql-general@lists.postgresql.org Subject: Re: pg_dump query failed In-reply-to: References: Comments: In-reply-to karol.malinowski@trustedeyes.pl message dated "Thu, 28 Jul 2022 12:08:59 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3384471.1659016283.1@sss.pgh.pa.us> Date: Thu, 28 Jul 2022 09:51:23 -0400 Message-ID: <3384472.1659016283@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk karol.malinowski@trustedeyes.pl writes: > last week backup of my one database stops with error like below: > "pg_dump: [archiver (db)] query failed: server closed the connection > unexpectedly > This probably means the server terminated abnormally > before or while processing the request. > Additional info: > PostgreSQL 9.6.8 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 4.8.5 > 20150623 (Red Hat 4.8.5-16), 64-bit The first thing I'd suggest is updating to the latest release in that branch (9.6.24). You're missing four years' worth of bug fixes, and it's not improbable that the underlying issue here is included in that. If that doesn't help, you'll need to start debugging. The symptom looks a bit like catalog corruption; if you are lucky then REINDEX'ing the catalogs used in that query would help. regards, tom lane