From: Erik Wienhold <ewie@ewie.name>
To: Holger Jakobs <holger@jakobs.com>
To: pgsql-admin@lists.postgresql.org <pgsql-admin@lists.postgresql.org>
Subject: Re: psql terminates on first error
Date: Thu, 2 Mar 2023 13:32:51 +0100 (CET)
Message-ID: <453307953.83682.1677760371729@office.mailbox.org> (raw)
In-Reply-To: <572addf0-5116-cec0-77fb-9a0ba0161240@jakobs.com>
References: <572addf0-5116-cec0-77fb-9a0ba0161240@jakobs.com>
> On 02/03/2023 12:53 CET Holger Jakobs <holger@jakobs.com> wrote:
>
> While trying to transfer data from one instance to another using
> pg_dumpall and psql, the psql stopped on first error, causing pg_dumpall
> to terminate as well.
>
> This behaviour was seen on Windows (EDB installer), but is different on
> Linux.
Database on Windows and client on Linux? What's the error and is it the same
on Linux? Is there even an error on Linux?
> Only when using an option -c "\set ON_ERROR_STOP false" (plus -f - of
> course to continue reading) psql continued after first error.
Do you use PowerShell and pipe pg_dumpall into psql? The first thing that
comes to my mind when reading Postgres+Windows is that PowerShell up to
version 5.1 converts stdout to UTF-16LE. This already tripped me up in
past with pg_dump and psql.
--
Erik
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: ewie@ewie.name, holger@jakobs.com, pgsql-admin@lists.postgresql.org
Subject: Re: psql terminates on first error
In-Reply-To: <453307953.83682.1677760371729@office.mailbox.org>
* 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