Re: [HACKERS] psql \h alter scrolls of screen

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Robert Treat <xzilla(at)users(dot)sourceforge(dot)net>, PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: [HACKERS] psql \h alter scrolls of screen
Date: 2003-09-11 18:28:36
Message-ID: 200309111828.h8BISaV16941@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers 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(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

Browse pgsql-hackers by date

  From Date Subject
Next Message Andreas Pflug 2003-09-11 18:31:15 Re: massive quotes?
Previous Message Bruce Momjian 2003-09-11 18:25:17 Re: massive quotes?

Browse pgsql-patches by date

  From Date Subject
Next Message Peter Eisentraut 2003-09-11 18:29:21 Re: Chinese NLS patch for 7.4
Previous Message Peter Eisentraut 2003-09-11 18:16:13 Re: [HACKERS] psql \h alter scrolls of screen