Re: Proposed patch - psql wraps at window width - Mailing list pgsql-hackers

From Brendan Jurd
Subject Re: Proposed patch - psql wraps at window width
Date
Msg-id 37ed240d0804251314y72461b8fy8d56606f362f91c6@mail.gmail.com
Whole thread Raw
In response to Re: Proposed patch - psql wraps at window width  (Bruce Momjian <bruce@momjian.us>)
Responses Re: Proposed patch - psql wraps at window width  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: Proposed patch - psql wraps at window width
Next
From: "Tom Dunstan"
Date:
Subject: Re: Re: [COMMITTERS] pgsql: Update: < * Allow adding enumerated values to an existing