Custom runtime variables - Mailing list pgsql-general

From Scott Bailey
Subject Custom runtime variables
Date
Msg-id 4A442523.10208@comcast.net
Whole thread Raw
Responses Re: Custom runtime variables
List pgsql-general
I want to be able to change the behavior of some functions based on
custom runtime variables.

I added the following lines to my postgresql.conf file:

custom_variable_classes = 'foo'
foo.name = '1s'

Now if I do "show foo.name" I get '1s'
But it does not show up in show all or in pg_settings.

I didn't find much in the way of documentation. How does one access the
value of foo.name from a plpgsql or sql function?

Also, can the variable be stored in a specific data type or am I stuck
with text?



pgsql-general by date:

Previous
From: Chris Spotts
Date:
Subject: Re planned recovery from a certain transaction
Next
From: Tom Lane
Date:
Subject: Re: Custom runtime variables