Re: SHOW ALL output too wide

Поиск
Список
Период
Сортировка
От Dennis Bjorklund
Тема Re: SHOW ALL output too wide
Дата
Msg-id Pine.LNX.4.44.0511260716100.25251-100000@zigo.dhs.org
обсуждение исходный текст
Ответ на Re: SHOW ALL output too wide  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: SHOW ALL output too wide  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
On Fri, 25 Nov 2005, Bruce Momjian wrote:

> > > Is there any use for SHOW except in interactive psql sessions?
> 
> There certainly is.  Imagine querying for timezone.  Also remember that
> pgadmin is a client application that is _not_ psql.

I should have written SHOW ALL, that's the command output that is too wide
to fit in a normal terminal window. Do pgadmin use SHOW ALL?

I would expect pgadmin to query pg_settings so that it get all info about
the variable that is stored and show it in the gui in some way. But I
don't use pgadmin so I don't know how it show the list of server
variables.

SHOW ALL really is an interactive command line interface command that is
implemented by the server.

> > Nothing that can't be done by querying pg_settings.
> 
> True, so we have pg_settings and SHOW.  I see no reason for a third,
> \show.

The same can be said about all slash-commands in psql.

By the way, we have yet another way. We have the functions that fetch 
server variable settings, like pg_show_all_settings().

Is your suggestion that we keep SHOW ALL as is? Or is that we extend it to
something like SHOW ALL NO DESC?

If we keep it as is then I would like to ask who is the target user it's
designed for? It's probably not for psql users since the output isn't
readable by anyone but those that have terminal windows > 165 characters
wide. It can't be for computer clients since those don't need the 
description column. So who is it designed for?

-- 
/Dennis Björklund



В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: PL/php in pg_pltemplate
Следующее
От: "Qingqing Zhou"
Дата:
Сообщение: Re: gprof SELECT COUNT(*) results