Re: [GENERAL] 'Session local' variables

2007-07-01 Thread Tom Lane
"Nick Johnson" <[EMAIL PROTECTED]> writes: > On 7/2/07, Tom Lane <[EMAIL PROTECTED]> wrote: >> "Nick Johnson" <[EMAIL PROTECTED]> writes: >>> I want to write a contrib module that exports a couple of functions >>> that PLs (that don't natively support this) can use to set/get >>> session-local vari

Re: [GENERAL] 'Session local' variables

2007-07-01 Thread Nick Johnson
On 7/2/07, Tom Lane <[EMAIL PROTECTED]> wrote: "Nick Johnson" <[EMAIL PROTECTED]> writes: > I want to write a contrib module that exports a couple of functions > that PLs (that don't natively support this) can use to set/get > session-local variables. Um, why do you need to do anything? Don't c

Re: [GENERAL] 'Session local' variables

2007-07-01 Thread Tom Lane
"Nick Johnson" <[EMAIL PROTECTED]> writes: > I want to write a contrib module that exports a couple of functions > that PLs (that don't natively support this) can use to set/get > session-local variables. Um, why do you need to do anything? Don't current_setting() and set_config() cover this?