public inbox for [email protected]
help / color / mirror / Atom feedFrom: Fabien COELHO <[email protected]>
To: Pavel Stehule <[email protected]>
Cc: Peter Eisentraut <[email protected]>
Cc: [email protected] <[email protected]>
Subject: Re: psql - add SHOW_ALL_RESULTS option
Date: Thu, 22 Jul 2021 16:49:30 +0200 (CEST)
Message-ID: <alpine.DEB.2.22.394.2107221632310.25741@pseudo> (raw)
In-Reply-To: <CAFj8pRBZD80cXxiVXzRZ++rThVzghrkqX_kPWcjb7GBj8UYk0w@mail.gmail.com>
References: <[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
<alpine.DEB.2.22.394.2104151336060.191178@pseudo>
<[email protected]>
<alpine.DEB.2.22.394.2106121130400.4105466@pseudo>
<CALDaNm0+pzGgp-M1mAoUVYRtjadbWYuB96J8RaV9iH3+HA8FTA@mail.gmail.com>
<alpine.DEB.2.22.394.2107151742300.1705285@pseudo>
<[email protected]>
<alpine.DEB.2.22.394.2107220744430.25741@pseudo>
<CAFj8pRD6XuTgbLCaHra+t1PJBEm8SL+y-Qmhax3-5A=0Q9xO0g@mail.gmail.com>
<alpine.DEB.2.22.394.2107221051140.25741@pseudo>
<CAFj8pRBZD80cXxiVXzRZ++rThVzghrkqX_kPWcjb7GBj8UYk0w@mail.gmail.com>
Hello,
> Minimally for PSQL_WATCH_PAGER, the pager should exit after some time, but
> before it has to repeat data reading. Elsewhere the psql will hang.
Sure. The "pager.pl" script I sent exits after reading a few lines.
> can be solution to use special mode for psql, when psql will do write to
> logfile and redirect to file instead using any (simplified) pager?
I do not want a special psql mode, I just would like "make check" to tell
me if I broke the PSQL_WATCH_PAGER feature after reworking the
multi-results patch.
> Theoretically, there is nothing special on usage of pager, and just you can
> test redirecting to file.
I do not follow. For what I seen the watch pager feature is somehow a
little different, and I'd like to be sure I'm not breaking anything.
For your information, pspg does not seem to like being fed two results
sh> PSQL_WATCH_PAGER="pspg --stream"
psql> SELECT NOW() \; SELECT RANDOM() \watch 1
The first table is shown, the second seems ignored.
--
Fabien.
view thread (104+ messages) latest in thread
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: [email protected]
Cc: [email protected], [email protected], [email protected], [email protected]
Subject: Re: psql - add SHOW_ALL_RESULTS option
In-Reply-To: <alpine.DEB.2.22.394.2107221632310.25741@pseudo>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox