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 1joYQo-0007nh-2Z for pgsql-general@arkaria.postgresql.org; Thu, 25 Jun 2020 20:25:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1joYQm-0000nG-VJ for pgsql-general@arkaria.postgresql.org; Thu, 25 Jun 2020 20:25:08 +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 1joYQm-0000n8-Ek for pgsql-general@lists.postgresql.org; Thu, 25 Jun 2020 20:25:08 +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 1joYQg-0002sk-3C for pgsql-general@lists.postgresql.org; Thu, 25 Jun 2020 20:25:07 +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 05PKP1x62291755; Thu, 25 Jun 2020 16:25:01 -0400 From: Tom Lane To: Matthias Apitz cc: pgsql-general@lists.postgresql.org Subject: Re: error messages (autovaccum canceled and syntax errors) while =?iso-8859-1?Q?loading_a_DUMP?= In-reply-to: References: <20200625111137.GA15798@sh4-5.1blu.de> <20200625125402.GA27634@sh4-5.1blu.de> <20200625180329.GA19346@sh4-5.1blu.de> Comments: In-reply-to Matthias Apitz message dated "Thu, 25 Jun 2020 22:04:57 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2291753.1593116700.1@sss.pgh.pa.us> Date: Thu, 25 Jun 2020 16:25:00 -0400 Message-ID: <2291754.1593116700@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Matthias Apitz writes: > On Thursday, 25 June 2020 21:41:54 CEST, Tom Lane > wrote: >> regardless of the exact details, it seems like the most likely theory >> about what is happening is that the dump file is corrupt and the >> corruption is causing the de-gzipped output to be missing or >> duplicating chunks of text. > I think, that a > gzip -dc foo > will work, regardless of the file names extensiom not beeing .gz Agreed, that gzip command won't care. I was concerned about what might've happened in between. > I think also, if the file have been corrupted on transport, gzip -dc ... > would complain about. Maybe. It'd be unlikely to be able to tell before reaching the CRC checksum at the end of the file, and it seems likely that it never does reach the end in this usage ... are you allowing the psql run to complete? Even if you are, you might miss gzip's one-line complaint in between all the whining from psql. regards, tom lane