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

From Bruce Momjian
Subject Re: Proposed patch - psql wraps at window width
Date
Msg-id 200804241836.m3OIa1a03495@momjian.us
Whole thread Raw
In response to Proposed patch - psql wraps at window width  (Bruce Momjian <bruce@momjian.us>)
Responses Re: Proposed patch - psql wraps at window width  (Gregory Stark <stark@enterprisedb.com>)
List pgsql-hackers
bruce wrote:
> Tom Lane wrote:
> > Bruce Momjian <bruce@momjian.us> writes:
> > > You are going to need to find community members who support your
> > > analysis if you want to make any headway in changing the patch.
> > 
> > Let's turn that around, shall we?  I think at this point it's *you*
> > that are standing alone and need to find someone who agrees with
> > your approach.
> 
> I am confused exactly what people want changed in the patch.  Some want
> no control over wrapping in file output, and others want $COLUMN to
> control column file output.  The only person I am seeing code from is
> Greg Stark, but I think most don't want his changes.

Here is an email showing two people who want some way of getting wrapped
output into a file:
http://archives.postgresql.org/pgsql-patches/2008-04/msg00344.php

I think the API in the patch is the best I am going to do to keep
everyone happy --- 'wrapped' doesn't affect file/pipe output unless you
also tell it the width you want.  Most interactive users are going to
set 'wrapped' and never set the width so it is automatically determined.

Some want wrapped to not affect file/pipe at all, while others (Greg
only?) want $COLUMNS to affect file/pipe output.

--  Bruce Momjian  <bruce@momjian.us>        http://momjian.us EnterpriseDB
http://enterprisedb.com
 + If your life is a hard drive, Christ can be your backup. +


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Proposed patch - psql wraps at window width
Next
From: Aidan Van Dyk
Date:
Subject: Re: Proposed patch - psql wraps at window width