"Nick Johnson" <arachnid@xxxxxxxxxx> 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? regards, tom lane