From: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
---|---|
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 08:49:25 |
Message-ID: | 162867790906260149u114e2c88q92d66765c2865e09@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
2009/6/26 Scott Bailey <artacus(at)comcast(dot)net>:
>
>> 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
>
> Thanks Tom. So how about accessing it from from plpgsql or sql?
look on http://www.postgresql.org/docs/8.3/interactive/functions-admin.html#FUNCTIONS-ADMIN-SET-TABLE
regards
Pavel Stehule
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>
From | Date | Subject | |
---|---|---|---|
Next Message | luca.ciciriello | 2009-06-26 08:56:34 | masking the code |
Previous Message | Scott Bailey | 2009-06-26 08:44:36 | Re: Custom runtime variables |