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

From Alvaro Herrera
Subject Re: SHOW ALL output too wide
Date
Msg-id 20051125232554.GC23668@surnet.cl
Whole thread Raw
In response to Re: SHOW ALL output too wide  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: SHOW ALL output too wide  (Bruce Momjian <pgman@candle.pha.pa.us>)
Re: SHOW ALL output too wide  (Martijn van Oosterhout <kleptog@svana.org>)
List pgsql-hackers
Bruce Momjian wrote:
> Alvaro Herrera wrote:
> > Bruce Momjian wrote:
> > > Dennis Bjorklund wrote:
> > 
> > > > Actually, I'm going to implement a \show command and send to -patches and
> > > > then SHOW can even be deprecated (if we want). SHOW is just a command line
> > > > client command, that is implemented in the server. That is not how we
> > > > normally do things in pg (for example, we have \d instead of a server
> > > > DESCRIBE command).
> > > 
> > > If you remove SHOW then applications/interfaces can't use it, which is
> > > bad.
> > 
> > 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.

(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.)

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


pgsql-hackers by date:

Previous
From: Dennis Bjorklund
Date:
Subject: Re: SHOW ALL output too wide
Next
From: Alvaro Herrera
Date:
Subject: Re: SHOW ALL output too wide