Re: explain output infelicity in psql - Mailing list pgsql-hackers

From Roger Leigh
Subject Re: explain output infelicity in psql
Date
Msg-id 20091210132954.GC3338@codelibre.net
Whole thread Raw
In response to Re: explain output infelicity in psql  (Alvaro Herrera <alvherre@commandprompt.com>)
Responses Re: explain output infelicity in psql  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
On Thu, Dec 10, 2009 at 10:12:32AM -0300, Alvaro Herrera wrote:
> Robert Haas escribió:
>
> > On first blush, I'm inclined to suggest that the addition of + signs
> > to mark continuation lines is a misfeature.
>
> -1
>
> EXPLAIN is a special case.  IMHO it should be dealt with accordingly.

If the formatting code can be taught that it's outputting for explain,
we can skip the wrap/newline markup easily.  I don't think we
necessarily need to fall back to the old-ascii format, we just
conditionally disable that specific part.

Alternatively, would it make more sense just to add a boolean pset
parameter to enable/disable the use of wrap/newline marks?  It may
be that people may wish to disable it for use cases in addition
to EXPLAIN.


Regards,
Roger

--  .''`.  Roger Leigh: :' :  Debian GNU/Linux             http://people.debian.org/~rleigh/`. `'   Printing on
GNU/Linux?      http://gutenprint.sourceforge.net/  `-    GPG Public Key: 0x25BFB848   Please GPG sign your mail. 

pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: explain output infelicity in psql
Next
From: Filip Rembiałkowski
Date:
Subject: Re: strange segfault with 8.3.8