Re: setting custom session variables?

Поиск
Список
Период
Сортировка
От Joe Conway
Тема Re: setting custom session variables?
Дата
Msg-id 4194E6CA.3040901@joeconway.com
обсуждение исходный текст
Ответ на Re: setting custom session variables?  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: setting custom session variables?
Список pgsql-novice
Tom Lane wrote:
> Raphael Bauduin <raphael.bauduin@be.easynet.net> writes:
>>Can I set my own postgresql session variables?
>
> Not in existing releases.  There is a feature in 8.0 that you could
> use (or misuse?) that way.
>

Also see myfunc_setvar(), myfunc_getvar, and myfunc_rmvar() in:
   http://www.joeconway.com/myfunc.tgz
for an example of how you could make your own. There is an article that
briefly describes these functions here:
http://www.onlamp.com/pub/a/onlamp/2004/06/28/postgresql_extensions.html


HTH,

Joe

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: setting custom session variables?
Следующее
От: Betsy Barker
Дата:
Сообщение: problem with sequence PostgreSQL 7.3.4