Re: proposal - psql - use pager for \watch command

Pavel Stehule <pavel.stehule@gmail.com>

From: Pavel Stehule <pavel.stehule@gmail.com>
To: vignesh C <vignesh21@gmail.com>
Cc: Thomas Munro <thomas.munro@gmail.com>, PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2021-07-12T20:20:20Z
Lists: pgsql-hackers
po 12. 7. 2021 v 18:12 odesílatel vignesh C <vignesh21@gmail.com> napsal:

> On Mon, Jul 12, 2021 at 4:29 AM Thomas Munro <thomas.munro@gmail.com>
> wrote:
> >
> > On Sun, Jul 11, 2021 at 1:18 AM vignesh C <vignesh21@gmail.com> wrote:
> > > On Wed, May 12, 2021 at 5:45 PM Pavel Stehule <pavel.stehule@gmail.com>
> wrote:
> > > > looks so with your patch psql doesn't work on ms
> >
> > Here's a fix for Windows.  The pqsignal() calls are #ifdef'd out.  I
> > also removed a few lines that were added after commit 3a513067 but
> > aren't needed anymore after fae65629.
>
> Thanks for fixing the comments, CFbot also passes for the same. I have
> changed the status back to "Ready for Committer".
>

I tested this version with the last release and with a developing version
of pspg, and it works very well.

Regards

Pavel


> Regards,
> Vignesh
>

Commits

  1. Fix \watch's interaction with libedit on ^C.

  2. Add PSQL_WATCH_PAGER for psql's \watch command.

  3. psql: Show all query results by default

  4. Add a comment warning against use of pg_usleep() for long sleeps.