From: | Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> |
---|---|
To: | Francisco Olarte <folarte(at)peoplecall(dot)com> |
Cc: | Ed Avis <eda(at)waniasset(dot)com>, "pgsql-bugs(at)postgresql(dot)org" <pgsql-bugs(at)postgresql(dot)org> |
Subject: | Re: BUG #11986: psql uses pager inside Emacs shell buffer (not a terminal) |
Date: | 2014-12-09 13:58:41 |
Message-ID: | 20141209135841.GN1768@alvh.no-ip.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
Francisco Olarte wrote:
> I've been making some tests with emacs shell mode, and it seems less does
> not work ( expected ) and more works partially ( it seems in shell mode
> emacs does whole lines only, so \040 does not work ). The ONLY problem I
> see with psql is that the more/less usage as default pager seems to be
> undocumented ( I mean, I have not bien able to find it without resorting to
> the source code ).
Do we really hardcode more/less? I thought we just used whatever $PAGER
is set to. I just tried
PAGER=most psql
and indeed it uses most rather than less.
BTW another thing you could try is
export PAGER=cat
from within Emacs.
As for Win32 users,
export PAGER="format C:"
might be the thing to do ...
--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
From | Date | Subject | |
---|---|---|---|
Next Message | Heikki Linnakangas | 2014-12-09 14:07:27 | Re: Out of memory: postgres killed after changing "checkoint_completion_target" and reloading postgres configuration file |
Previous Message | Julian Schauder | 2014-12-09 13:49:04 | Re: BUG #12181: Low Disk Space |