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

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: [HACKERS] psql \h alter scrolls of screen
Дата
Msg-id 200309111828.h8BISaV16941@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: [HACKERS] psql \h alter scrolls of screen  (Peter Eisentraut <peter_e@gmx.net>)
Список 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 по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: [HACKERS] psql \h alter scrolls of screen
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Chinese NLS patch for 7.4