Re: psql terminates on first error

From: Holger Jakobs <holger(at)jakobs(dot)com>
To: Erik Wienhold <ewie(at)ewie(dot)name>, "pgsql-admin(at)lists(dot)postgresql(dot)org" <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: psql terminates on first error
Date: 2023-03-02 12:44:12
Message-ID: c2f5c47e-f603-a54a-7ad1-2d780857523e@jakobs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Am 02.03.23 um 13:32 schrieb Erik Wienhold:
>> On 02/03/2023 12:53 CET Holger Jakobs <holger(at)jakobs(dot)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?

Both on Windows or both 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.
No, it was in cmd.exe or in bash
> --
> Erik

--
Holger Jakobs, Bergisch Gladbach, Tel. +49-178-9759012

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Thomas Kellerer 2023-03-02 12:48:53 Re: psql terminates on first error
Previous Message Erik Wienhold 2023-03-02 12:32:51 Re: psql terminates on first error