Search Postgresql Archives

Re: Custom Class variables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Michael Gould wrote:
> I have created the following in my postgres.conf file
> 
> custom_variable_classes = 'iss'
> 
> In a SQL session I've tried 
> 
> Set iss.one = '1'
> set iss.two = '2'
> 
> Select * from iss;
> 
> How do I access the values from the custom class in sql code?

show iss.one;
select current_setting('iss.one');

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux