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

Pavel Stehule <pavel.stehule@gmail.com>

From: Pavel Stehule <pavel.stehule@gmail.com>
To: Thomas Munro <thomas.munro@gmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2021-05-12T10:25:00Z
Lists: pgsql-hackers

Attachments

Hi

st 21. 4. 2021 v 8:52 odesílatel Pavel Stehule <pavel.stehule@gmail.com>
napsal:

>
>
> st 21. 4. 2021 v 8:49 odesílatel Thomas Munro <thomas.munro@gmail.com>
> napsal:
>
>> On Wed, Apr 21, 2021 at 6:33 PM Pavel Stehule <pavel.stehule@gmail.com>
>> wrote:
>> > here is an rebase of Thomas's implementation
>>
>> Thanks.  I finished up not committing that one for 14 because I wasn't
>> sure about the way to rebase it on top of 3a513067 (now reverted);
>> that "restore" stuff seemed a bit weird.  Let's try again in v15 CF1!
>>
>
> Understand. Thank you
>

rebase

Regards

Pavel


> Pavel
>
>

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.