Re: SHOW ALL output too wide - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: SHOW ALL output too wide
Date
Msg-id 200511260009.jAQ09qr04313@candle.pha.pa.us
Whole thread Raw
In response to Re: SHOW ALL output too wide  (Alvaro Herrera <alvherre@commandprompt.com>)
Responses Re: SHOW ALL output too wide  ("Greg Sabino Mullane" <greg@turnstep.com>)
List pgsql-hackers
Alvaro Herrera wrote:
> > > I think a \show would be nice, but deprecating SHOW is out of the
> > > question.  (The pg_settings view is a perfect replacement AFAICS but I
> > > doubt we can get rid of the old interface.)
> > > 
> > > OTOH, what's the relationship between \show and Martijn's wide output
> > > patch?  Maybe the problem can be solved in a different way.
> > 
> > What does \show do that SHOW does not?
> 
> Well, nothing given that it isn't implemented yet :-)  But if I
> understood Dennis' proposal, the idea was that the output would be
> nicely formatted instead of wrapping.

Well, that's hardly a reason to add something to the client that is
already in the backend.  A much more general solution would be to either
add a flag to SHOW ALL to supress the extra column (or one to add it),
or auto-\x for wide output.  Hacking in \show is not the solution. 
There was a long discussion about outputing the description for SHOW. 
Originally SHOW always showed the description, but the agreed behavior
was that only SHOW ALL would show it.

> (I just noticed that Martijn's patch is not about auto-wrapping but
> about displaying \n correctly, which is quite different.  So while there
> may be some common code it certainly is not the same thing.)

Right.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: SHOW ALL output too wide
Next
From: Bruce Momjian
Date:
Subject: Re: SHOW ALL output too wide