Re: How to define global variable in postgresql

Поиск
Список
Период
Сортировка
От Jim Nasby
Тема Re: How to define global variable in postgresql
Дата
Msg-id D41D254C-B229-4BC4-AF29-2A044B920B8C@nasby.net
обсуждение исходный текст
Ответ на Re: How to define global variable in postgresql  (Valentine Gogichashvili <valgog@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Robert Haas
Дата:
Сообщение: cheaper snapshots redux
Следующее
От: Jim Nasby
Дата:
Сообщение: Re: Displaying accumulated autovacuum cost