Re: [HACKERS] psql \h alter scrolls of screen - Mailing list pgsql-patches

From Bruce Momjian
Subject Re: [HACKERS] psql \h alter scrolls of screen
Date
Msg-id 200309111828.h8BISaV16941@candle.pha.pa.us
Whole thread Raw
In response to Re: [HACKERS] psql \h alter scrolls of screen  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-patches
Peter Eisentraut wrote:
> Bruce Momjian writes:
>
> > OK, turns out the '\h alter' code does a simple printf(), not a
> > PageOutput() and fprintf() to that pipe.  Various \h outputs are long,
> > including CREATE TABLE, GRANT, and ALTER TABLE.  ALTER itself is really
> > larger because it prints all the ALTER commands help.
>
> They are long, but not not longer than a few pages, in which case it's
> more convenient to use your terminals scrolling functionality.  It's a
> different story when query output is thousands of lines long, in which
> case you usually cannot scroll anymore.

Yes, but our table output already pages if it exceeds the screen size,
so it seems we should be consistent, and if someone is on the console,
they might not have scroll-back, and are left with ^S, ^Q.  :-)

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

pgsql-patches by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: [HACKERS] psql \h alter scrolls of screen
Next
From: Peter Eisentraut
Date:
Subject: Re: Chinese NLS patch for 7.4