From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | CSN <cool_screen_name90001(at)yahoo(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: \s paging? |
Date: | 2004-03-27 18:02:09 |
Message-ID: | 200403271802.i2RI29O09934@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
CSN wrote:
> Is it possible to have "less"-type paging with psql's
> \s command? Or other ways like display the last 50
> commands backwards?
I just checked and the \s code actually calls the readline library:
if (write_history(fname) == 0)
with fname set to /dev/tty if file name is supplied. The only fix we
could do would be to put a temp file in for fname, then output that
through a pager. However, it doesn't seem worth the trouble.
I added a comment in the C code if we ever come back to it.
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2004-03-27 18:48:27 | Re: Native Win32 port - PLEASE! |
Previous Message | Tom Lane | 2004-03-27 17:07:55 | Re: Index usage for BYTEA column in OR/IN clause |