Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: SHOW ALL output too wide


  • From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
  • To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
  • Cc: Dennis Bjorklund <db(at)zigo(dot)dhs(dot)org>, pgsql-hackers(at)postgresql(dot)org
  • Subject: Re: SHOW ALL output too wide
  • Date: Fri, 25 Nov 2005 19:09:52 -0500 (EST)
  • Message-id: <200511260009(dot)jAQ09qr04313(at)candle(dot)pha(dot)pa(dot)us>

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(at)candle(dot)pha(dot)pa(dot)us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group