Re: Custom runtime variables

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Scott Bailey <artacus(at)comcast(dot)net>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Custom runtime variables
Date: 2009-06-26 02:53:56
Message-ID: 22245.1245984836@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Scott Bailey <artacus(at)comcast(dot)net> writes:
> 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.

No, it doesn't. It should still work in set/show though.

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

There's no data type associated with it. This is all an artifact of the
fact that this isn't a genuine designed-in feature, but a kluge that
someone shoehorned in. You should have to declare the variable in some
fashion...

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Gerhard Wiesinger 2009-06-26 04:28:33 Re: Problems with postgres online backup - restore
Previous Message Scott Bailey 2009-06-26 01:32:19 Custom runtime variables