Re: Custom runtime variables - Mailing list pgsql-general

From Andreas Kretschmer
Subject Re: Custom runtime variables
Date
Msg-id 20090626085808.GA14663@tux
Whole thread Raw
In response to Re: Custom runtime variables  (Scott Bailey <artacus@comcast.net>)
Responses Re: Custom runtime variables
List pgsql-general
Scott Bailey <artacus@comcast.net> wrote:

> Thanks Tom. So how about accessing it from from plpgsql or sql?

test=# select * from current_setting('myvar.foo');
 current_setting
-----------------

(1 Zeile)

Zeit: 0,163 ms
test=*#
test=*# set myvar.foo='bla';
SET
Zeit: 0,117 ms
test=*# select * from current_setting('myvar.foo');
 current_setting
-----------------
 bla
(1 Zeile)



Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect.                              (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly."   (unknown)
Kaufbach, Saxony, Germany, Europe.              N 51.05082°, E 13.56889°

pgsql-general by date:

Previous
From: luca.ciciriello@email.it
Date:
Subject: masking the code
Next
From: Pavel Stehule
Date:
Subject: Re: masking the code