Re: Proposed patch - psql wraps at window width

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-hackers(at)postgresql(dot)org, Gregory Stark <stark(at)enterprisedb(dot)com>, Brendan Jurd <direvus(at)gmail(dot)com>, Bryce Nesbitt <bryce2(at)obviously(dot)com>, heikki(at)enterprisedb(dot)com
Subject: Re: Proposed patch - psql wraps at window width
Date: 2008-04-24 16:38:27
Message-ID: 200804241638.m3OGcRd17084@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Bruce Momjian wrote:
> Tom Lane wrote:
> > Bruce Momjian <bruce(at)momjian(dot)us> writes:
> > > Peter Eisentraut wrote:
> > >> Well, the feature is labeled "psql wraps at window width". If the output
> > >> isn't on a window, then it shouldn't wrap.
> >
> > > \pset columns will wrap to the specified width for file output.
> >
> > I agree with Peter: that's a seriously bad idea.
>
> Uh, I am confused. Are you saying \pset columns should not control file
> output? And if it doesn't how does someone get file output in a
> specified width?

For reference Peter's comment is here:

http://archives.postgresql.org/pgsql-hackers/2008-04/msg01633.php

and the patch is here:

ftp://momjian.us/pub/postgresql/mypatches/wrap

with documentation.

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2008-04-24 16:40:56 Re: Is this TODO item done?
Previous Message Andrew Chernow 2008-04-24 16:36:43 Re: libpq object hooks -- needs copy result

Browse pgsql-patches by date

  From Date Subject
Next Message Gregory Stark 2008-04-24 17:34:31 Re: Proposed patch - psql wraps at window width
Previous Message Bruce Momjian 2008-04-24 16:34:26 Re: Proposed patch - psql wraps at window width