Re: How to define global variable in postgresql - Mailing list pgsql-hackers

From Jim Nasby
Subject Re: How to define global variable in postgresql
Date
Msg-id D41D254C-B229-4BC4-AF29-2A044B920B8C@nasby.net
Whole thread Raw
In response to Re: How to define global variable in postgresql  (Valentine Gogichashvili <valgog@gmail.com>)
List pgsql-hackers
On Aug 19, 2011, at 4:15 PM, Valentine Gogichashvili wrote:
> > Hello. How can we define a global variable in postgresql?
>
> you can also use global structure in plpython for example:
>
> http://www.postgresql.org/docs/9.0/static/plpython-sharing.html

Same thing with plperl.

BTW, if you want something that's global but also transactional then you'll want to use a temp table.
--
Jim C. Nasby, Database Architect                   jim@nasby.net
512.569.9461 (cell)                         http://jim.nasby.net




pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: cheaper snapshots redux
Next
From: Jim Nasby
Date:
Subject: Re: Displaying accumulated autovacuum cost