Re: Password reset link / 'less' does not exit in psql version 13.4

From: Francisco Olarte <folarte(at)peoplecall(dot)com>
To: "Michael J(dot) Baars" <mjbaars1977(dot)pgsql(dot)hackers(at)gmail(dot)com>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Password reset link / 'less' does not exit in psql version 13.4
Date: 2022-07-25 11:06:02
Message-ID: CA+bJJbyMNymFQr7Dh5fcvuH7yqaCBXoh4j6BMgUn6eyFLgsRqA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Michael:

On Mon, 25 Jul 2022 at 12:01, Michael J. Baars
<mjbaars1977(dot)pgsql(dot)hackers(at)gmail(dot)com> wrote:
> 2) I have three psql clients running, a version 12.6, a version 13.4 and a version 14.3. Until now a 'select * from table;' showed the output in 'less' or something alike and exited from 'less' when
> the output was complete. Both version 12.6 and version 13.4 work that way. Version 14.3 does not exit from 'less' when the output is complete. Did anyone notice this already?

AFAIK psql just pipes and waits ( and I've piped through some programs
of mine which could normally show bizarre behaviour if psql did
otherwise )This seems like you tuned the pager command or the default
less options, from man less:
>>>
-e or --quit-at-eof
Causes less to automatically exit the second time it
reaches end-of-file. By default, the
only way to exit less is via the "q" command.

-E or --QUIT-AT-EOF
Causes less to automatically exit the first time it
reaches end-of-file.
<<<

This can come from a variety of sources, see man less, search for lesskey, ...

Check also PAGER and PSQL_PAGER, and .psqlrc and friends, you may have
some things there.

Francsico Olarte.

>
> Best regards,
> Mischa Baars.
>
>
>
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Mladen Gogala 2022-07-25 12:42:33 Re: Was my question inappropriate for postgres?
Previous Message Michael J. Baars 2022-07-25 10:01:18 Password reset link / 'less' does not exit in psql version 13.4