Re: Proposed patch - psql wraps at window width

Поиск
Список
Период
Сортировка
От Brendan Jurd
Тема Re: Proposed patch - psql wraps at window width
Дата
Msg-id 37ed240d0804251314y72461b8fy8d56606f362f91c6@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Proposed patch - psql wraps at window width  (Bruce Momjian <bruce@momjian.us>)
Ответы Re: Proposed patch - psql wraps at window width  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Список pgsql-hackers
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sat, Apr 26, 2008 at 5:21 AM, Bruce Momjianwrote:
>  Obviously you have expections of how wrapping should behave.  Please
>  name me an application that has a wrapped mode that has the output to a
>  file wrap based on the screen width?  It isn't 'ls -C'.
>

Trying to draw analogies between psql and other command-line tools is
always going to be a bit of a stretch.  Name me any application at all
that tries to produce both human- and machine- readable
representations of arbitrary tabular data.

All I'm saying is, if the user has exlicitly told psql that he wants
wrapped, human-readable output, we should give it to him regardless of
where he wants to put it.

If the user hasn't specified any format at all, then it's fine to play
guessing games and try to select the best format automatically for
him, based on factors like the destination.  But IMO once the user
makes a determination about the output format, that's the end of the
story.  You toe that line.

Cheers,
BJ

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: http://getfiregpg.org

iD8DBQFIEju85YBsbHkuyV0RAgNTAJ4ghWB1SlvuQhsH3ltrbVM5LoMBwACgoTdT
B6UDw4oG5tlwTlcLcJA4xic=
=2lmV
-----END PGP SIGNATURE-----


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Proposed patch - psql wraps at window width
Следующее
От: "Tom Dunstan"
Дата:
Сообщение: Re: Re: [COMMITTERS] pgsql: Update: < * Allow adding enumerated values to an existing