Re: Global/persistent variables

Поиск
Список
Период
Сортировка
От Joe Conway
Тема Re: Global/persistent variables
Дата
Msg-id 41DDD06D.9030202@joeconway.com
обсуждение исходный текст
Ответ на Global/persistent variables  (Ronnie Meier Ramos <ronnie@viler.com.br>)
Ответы Re: Global/persistent variables  (Ronnie Meier Ramos <ronnie@viler.com.br>)
Список pgsql-general
Ronnie Meier Ramos wrote:
> AFAIK PG doesn't have packages - this is not a problem since I can
> handle it with different schemas or some naming convention, but is there
> a way to declare persistent variables (that would be "visible" to any
> function up to the end of the session) ?

You might be able to fake it with some C functions. See:

http://www.joeconway.com/myfunc.tgz

Look at myfunc_setvar(), myfunc_getvar(), and myfunc_rmvar().

HTH,

Joe

В списке pgsql-general по дате отправления:

Предыдущее
От: Bruno Wolff III
Дата:
Сообщение: Re: warning: pg_query(): Query failed
Следующее
От: Aaron Steele
Дата:
Сообщение: Re: warning: pg_query(): Query failed