Another little thing about psql wrapped expanded output

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Another little thing about psql wrapped expanded output
Дата
Msg-id 10539.1448986853@sss.pgh.pa.us
обсуждение исходный текст
Ответы Re: Another little thing about psql wrapped expanded output  (David Fetter <david@fetter.org>)
Список pgsql-hackers
regression=# \pset format wrapped
Output format is wrapped.
regression=# \x
Expanded display is on.
regression=# select * from int8_tbl;
-[ RECORD 1 ]-------------------------------------------------------------------
q1 | 123
q2 | 456
-[ RECORD 2 ]-------------------------------------------------------------------
q1 | 123
q2 | 4567890123456789
-[ RECORD 3 ]-------------------------------------------------------------------
q1 | 4567890123456789
q2 | 123
-[ RECORD 4 ]-------------------------------------------------------------------
q1 | 4567890123456789
q2 | 4567890123456789
-[ RECORD 5 ]-------------------------------------------------------------------
q1 | 4567890123456789
q2 | -4567890123456789

Notice that the dashed lines go all the way to the right margin of my
80-column terminal window, even though the data requires no more than
22 columns.  While this doesn't look so awful as-is, when I'm working
in a very wide window it starts to look a little silly.

The behavior I'd have expected is that if the data is narrower than
the window, the lines only go to the right margin of the data.  This
is a trivial change to the logic in print_aligned_vertical, but before
I go make it, does anyone want to argue that the current behavior is
preferable to that?
        regards, tom lane



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Remaining 9.5 open items
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: custom function for converting human readable sizes to bytes