Re: Tech details - psql wraps at window width - Mailing list pgsql-hackers

From Brendan Jurd
Subject Re: Tech details - psql wraps at window width
Date
Msg-id 37ed240d0804252338k3f96ad99o5e2383e226da53b9@mail.gmail.com
Whole thread Raw
In response to Re: Tech details - psql wraps at window width  (Bryce Nesbitt <bryce2@obviously.com>)
List pgsql-hackers
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sat, Apr 26, 2008 at 5:08 PM, Bryce Nesbittwrote:
>  Well, come to think of it, "wrapped" is not really a new output format in
> the sense of "html" or "latex".  It could build on aligned:
>
>  \pset format aligned [autowrap|nowrap|nnn]
>

I agree that wrapped is more a variant of aligned mode than a format
mode in its own right.  Expressing it that way with \pset has the nice
bonus that you don't lose your preference for wrapped mode when
switching between aligned and unaligned with \a.

>  But there's still the issue of wanting separate defaults for tty and stream
> outputs.  The last thing you want is an admin deciding on wrapping, and then
> subtly breaking scripts.  My personal desired defaults are:
>

Well, if we pursue Peter's suggestion that psql abstain from reading
the startup file in noninteractive mode, then this problem goes away.
An admin could opt to wrap in his interactive sessions without it ever
affecting the behaviour of scripts ... which is exactly what you would
want.

Cheers,
BJ
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)
Comment: http://getfiregpg.org

iD8DBQFIEs3x5YBsbHkuyV0RAiPsAJ0QIhWmq4s622dTZNP4MknxWTm30wCfaMTP
kY9qEW0GB3rJb3Xq5F92geY=
=GbOb
-----END PGP SIGNATURE-----


pgsql-hackers by date:

Previous
From: "Brendan Jurd"
Date:
Subject: Re: we don't have a bugzilla
Next
From: Hannes Dorbath
Date:
Subject: Re: MERGE Specification