pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Holger Jakobs <holger@jakobs.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-admin@lists.postgresql.org <pgsql-admin@lists.postgresql.org>
Subject: Re: psql terminates on first error
Date: Thu, 2 Mar 2023 15:36:25 +0100
Message-ID: <1ec0565e-d303-fbe4-9bd2-bd9f3dcf2272@jakobs.com> (raw)
In-Reply-To: <1897764.1677767610@sss.pgh.pa.us>
References: <572addf0-5116-cec0-77fb-9a0ba0161240@jakobs.com>
	<1897764.1677767610@sss.pgh.pa.us>

Am 02.03.23 um 15:33 schrieb Tom Lane:
> Holger Jakobs <holger@jakobs.com> writes:
>> 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.
>> Only when using an option -c "\set ON_ERROR_STOP false" (plus -f - of
>> course to continue reading) psql continued after first error.
>> Not even the option -v ON_ERROR_STOP=0 helped.
>> Why is the behaviour between Linux and Windows different? This is not
>> reflected in the documentation.
> It shouldn't be different.  However, this report would be trivially
> explained if your Windows machine has an %APPDATA%\postgresql\psqlrc.conf
> file that turns ON_ERROR_STOP on.  You could try invoking psql with
> the -X command line switch to prevent reading that.
>
> 			regards, tom lane

BINGO!

Thanks a lot.

Sometimes you forget what you have done earlier. ;-)



-- 

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



Attachments:

  [application/pgp-signature] OpenPGP_signature (202B, ../1ec0565e-d303-fbe4-9bd2-bd9f3dcf2272@jakobs.com/2-OpenPGP_signature)
  download

view thread (8+ messages)

Message-ID: <1ec0565e-d303-fbe4-9bd2-bd9f3dcf2272@jakobs.com>
Permalink:  ../1ec0565e-d303-fbe4-9bd2-bd9f3dcf2272@jakobs.com/
Also on:    postgresql.org/message-id/1ec0565e-d303-fbe4-9bd2-bd9f3dcf2272@jakobs.com

 · 

reply

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: holger@jakobs.com, tgl@sss.pgh.pa.us, pgsql-admin@lists.postgresql.org
  Subject: Re: psql terminates on first error
  In-Reply-To: <1ec0565e-d303-fbe4-9bd2-bd9f3dcf2272@jakobs.com>

* 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