| From: | artacus(at)comcast(dot)net |
|---|---|
| To: | Andreas Kretschmer <akretschmer(at)spamfence(dot)net> |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: Custom runtime variables |
| Date: | 2009-06-26 19:32:55 |
| Message-ID: | 1533510736.118401246044775848.JavaMail.root@sz0018a.emeryville.ca.mail.comcast.net |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
----- Original Message -----
From: "Andreas Kretschmer" <akretschmer(at)spamfence(dot)net>
To: pgsql-general(at)postgresql(dot)org
Sent: Friday, June 26, 2009 1:58:08 AM GMT -08:00 US/Canada Pacific
Subject: Re: [GENERAL] Custom runtime variables
Scott Bailey <artacus(at)comcast(dot)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)
Thanks Pavel and Andreas.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | artacus | 2009-06-26 19:37:32 | Re: masking the code |
| Previous Message | Brian Troutwine | 2009-06-26 19:30:40 | Terrible Write Performance of a Stored Procedure |