Re: Proposed patch - psql wraps at window width

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: 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 15:50:44
Message-ID: 200804241550.m3OFoi912453@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Peter Eisentraut wrote:
> Am Donnerstag, 24. April 2008 schrieb Gregory Stark:
> > b) If you dump to a file it will still respect COLUMNS. This might be a bit
> > ? ?weird since bash sets COLUMNS so your file width will be based on the
> > size of your terminal. But people also do things like COLUMNS=120 psql -o f
> > ...
>
> Well, the feature is labeled "psql wraps at window width". If the output
> isn't on a window, then it shouldn't wrap. I certainly don't want the output
> to a file to depend on the size of the window at the time.
>
> Perhaps having a variable inside psql to control this explicitly could be
> useful for the case you describe.

\pset columns will wrap to the specified width for file output.

--
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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2008-04-24 15:53:06 hm, why isn't SGT in the default timezone abbreviations list?
Previous Message Bruce Momjian 2008-04-24 15:43:35 Re: Index AM change proposals, redux

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2008-04-24 15:56:27 Re: Improve shutdown during online backup, take 4
Previous Message Peter Eisentraut 2008-04-24 15:21:28 Re: Proposed patch - psql wraps at window width