Re: [SQL] custom_variable_classes in 9.1

2012-02-29 Thread Marcin Krawczyk
Ok' ve got it, I've found some comment from Tom Lane on that: "The whole custom-variable thing is being abused far beyond what the facility was intended for, anyway. Rather than allowing variables to spring into existence like magic, what we should have is some facility for letting session-local v

[SQL] custom_variable_classes in 9.1

2012-02-29 Thread Marcin Krawczyk
Hi list, I'm using some global variables through custom_variable_classes facility. I've recently switched from 8.1 to 9.1 and somewhere along the line the behavior of custom_variable_classes has changed - if the variable has not been set for a given session invoking it (SELECT current_setting('nam