Re: setting custom session variables?

From: Joe Conway <mail(at)joeconway(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Raphael Bauduin <raphael(dot)bauduin(at)be(dot)easynet(dot)net>, pgsql-novice(at)postgresql(dot)org
Subject: Re: setting custom session variables?
Date: 2004-11-12 16:37:30
Message-ID: 4194E6CA.3040901@joeconway.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Tom Lane wrote:
> Raphael Bauduin <raphael(dot)bauduin(at)be(dot)easynet(dot)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

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Tom Lane 2004-11-12 22:25:58 Re: problem with sequence PostgreSQL 7.3.4
Previous Message Tom Lane 2004-11-12 15:08:59 Re: setting custom session variables?