Hi all (I hope this is the correct list),

Under Oracle there is v$parameter which list ALL config varables.  Under
psql there is the SHOW command, but this only lists 1 variable.  I have
written a shell script (attached) that shows ALL know variables.  My
questions is can this script get included under contrib directory and is
there a way to make it into a view.  I believe this kind of info will
help in trouble shooting problems.

thanks
Jim
Wed, 16 May 2001 12:53:33 -0400
"Jim Buttafuoco" <jim@buttafuoco.net>
Running config vars

I will try to get this feature into 7.2, though as backend code.


[ Charset ISO-8859-1 unsupported, converting... ]
> Hi all (I hope this is the correct list),
> 
> Under Oracle there is v$parameter which list ALL config varables.  Under
> psql there is the SHOW command, but this only lists 1 variable.  I have
> written a shell script (attached) that shows ALL know variables.  My
> questions is can this script get included under contrib directory and is
> there a way to make it into a view.  I believe this kind of info will
> help in trouble shooting problems.
> 
> thanks
> Jim
> 
> 

[ application/octet-stream is not supported, skipping... ]

> 
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

Fri, 18 May 2001 10:39:42 -0400 (EDT)
Bruce Momjian <pgman@candle.pha.pa.us>
Re: Running config vars
Bruce Momjian writes:

> I will try to get this feature into 7.2, though as backend code.

I've long been thinking that the SET/RESET/SHOW commands could be
implemented as stored procedures and/or functions.  That way you could
cleanly return the settings to the client application and compose new
values out of arbitrary expressions.  If ever functions can return
multiple rows you could also arrange for them to show all current
settings.

>
>
> [ Charset ISO-8859-1 unsupported, converting... ]
> > Hi all (I hope this is the correct list),
> >
> > Under Oracle there is v$parameter which list ALL config varables.  Under
> > psql there is the SHOW command, but this only lists 1 variable.  I have
> > written a shell script (attached) that shows ALL know variables.  My
> > questions is can this script get included under contrib directory and is
> > there a way to make it into a view.  I believe this kind of info will
> > help in trouble shooting problems.

-- 
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter


Fri, 18 May 2001 17:59:29 +0200 (CEST)
Peter Eisentraut <peter_e@gmx.net>
Re: Running config vars
> Bruce Momjian writes:
>
> > I will try to get this feature into 7.2, though as backend code.
>
> I've long been thinking that the SET/RESET/SHOW commands could be
> implemented as stored procedures and/or functions.  That way you could
> cleanly return the settings to the client application and compose new
> values out of arbitrary expressions.  If ever functions can return
> multiple rows you could also arrange for them to show all current
> settings.

I added a function to the c library that I sent to patches the other day --
called "get_var". It implements what you describe above (that is, one
variable at a time). I'd like to get this into contrib, or do the work
necessary to get it into the backend -- any interest in letting me give that
a try?

Thanks,

Joe
Fri, 18 May 2001 10:54:59 -0700
"Joe Conway" <joe@conway-family.com>
Re: Running config vars