Skip site navigation (1) Skip section navigation (2)

Re: \s paging?

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: (view raw, whole thread or download thread mbox)
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                        |
  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

In response to

pgsql-general by date

Next:From: Bruce MomjianDate: 2004-03-27 18:48:27
Subject: Re: Native Win32 port - PLEASE!
Previous:From: Tom LaneDate: 2004-03-27 17:07:55
Subject: Re: Index usage for BYTEA column in OR/IN clause

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group