Re: pgsql --echo-errors --quiet and setval - Mailing list pgsql-general

From David G. Johnston
Subject Re: pgsql --echo-errors --quiet and setval
Date
Msg-id CAKFQuwabDn3Op_gQdmqz2_rk_6G57kFx3p+k-yjBZv0UHUs_DQ@mail.gmail.com
Whole thread Raw
In response to Re: pgsql --echo-errors --quiet and setval  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
On Sun, Sep 10, 2023 at 10:43 AM Tom Lane <tgl@sss.pgh.pa.us> wrote:
I'm not sure whether it'd be profitable to try to build that behavior
into the scripts themselves.

Teaching it not to call "print" (or making it a no-op somehow) in a certain mode, yes, trying to redirect output it is producing, I doubt it for the reason mentioned.  It isn't difficult to add "> /dev/null" to the command line if that is what you want - no need to touch scripts given a capable enough shell.

David J.

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: pgsql --echo-errors --quiet and setval
Next
From: gzh
Date:
Subject: Re: ERROR: stack depth limit exceeded