Skip site navigation (1) Skip section navigation (2)

Re: Custom runtime variables

From: 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:44:36
Message-ID: (view raw, whole thread or download thread mbox)
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'
>> = '1s'
>> Now if I do "show" 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?

In response to


pgsql-general by date

Next:From: Pavel StehuleDate: 2009-06-26 08:49:25
Subject: Re: Custom runtime variables
Previous:From: Knut P. LehreDate: 2009-06-26 08:26:40
Subject: PL/pgSQL EXECUTE quote_ident(), and SQL injection

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group