From: Tom Lane <tgl@sss.pgh.pa.us>
To: Matthias Apitz <guru@unixarea.de>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: error messages (autovaccum canceled and syntax errors) while loading a DUMP
Date: Thu, 25 Jun 2020 16:25:00 -0400
Message-ID: <2291754.1593116700@sss.pgh.pa.us> (raw)
In-Reply-To: <aeb27c70-db81-4012-b6c8-2bbc54f45013@unixarea.de>
References: <20200625111137.GA15798@sh4-5.1blu.de>
<20200625125402.GA27634@sh4-5.1blu.de>
<bdddf16b-b9df-4092-d8e7-78604736b8a3@aklaver.com>
<20200625180329.GA19346@sh4-5.1blu.de>
<fae083a8-dfc6-a133-aaa3-95af8011f70f@aklaver.com>
<aeb27c70-db81-4012-b6c8-2bbc54f45013@unixarea.de>
Matthias Apitz <guru@unixarea.de> writes:
> On Thursday, 25 June 2020 21:41:54 CEST, Tom Lane <tgl@sss.pgh.pa.us>
> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, guru@unixarea.de
Subject: Re: error messages (autovaccum canceled and syntax errors) while loading a DUMP
In-Reply-To: <2291754.1593116700@sss.pgh.pa.us>
References: <20200625111137.GA15798@sh4-5.1blu.de> <20200625125402.GA27634@sh4-5.1blu.de> <bdddf16b-b9df-4092-d8e7-78604736b8a3@aklaver.com> <20200625180329.GA19346@sh4-5.1blu.de> <fae083a8-dfc6-a133-aaa3-95af8011f70f@aklaver.com> <aeb27c70-db81-4012-b6c8-2bbc54f45013@unixarea.de> <2291754.1593116700@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox