Re: [GENERAL] problem with custom_variable_classes

2008-09-29 Thread Malcolm Studd
Taras Kopets wrote: now you have to initialize this variable once per session before usage: SELECT set_config('olap.rownum_name', false); Ok, thanks. That has fixed my problem. Malcolm -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription

Re: [GENERAL] problem with custom_variable_classes

2008-09-24 Thread hubert depesz lubaczewski
On Wed, Sep 24, 2008 at 07:33:27PM -0400, Tom Lane wrote: > It will accept *definitions*, yes. I can't imagine why you'd think > it's a good idea to not throw error when asked for an unknown variable's > value. because this is how it worked. i'm not saying it was good. it worked that way, and int

Re: [GENERAL] problem with custom_variable_classes

2008-09-24 Thread Tom Lane
hubert depesz lubaczewski <[EMAIL PROTECTED]> writes: > while manual in 8.4 still states: > "When custom_variable_classes is set, the server will accept definitions of > arbitrary variables within each specified class.". It will accept *definitions*, yes. I can't imagine why you'd think it's a g

Re: [GENERAL] problem with custom_variable_classes

2008-09-24 Thread Taras Kopets
On Thu, Sep 25, 2008 at 12:38 AM, hubert depesz lubaczewski <[EMAIL PROTECTED]> wrote: > but it means that there is currently no way to check if there is value in this > - i.e. if it has been initialized. now you have to initialize this variable once per session before usage: SELECT set_config('o

Re: [GENERAL] problem with custom_variable_classes

2008-09-24 Thread hubert depesz lubaczewski
On Wed, Sep 24, 2008 at 12:15:41PM -0400, Malcolm Studd wrote: > I have a pl/pgSQL function[1] to calculate row numbers (based on [2]). > It uses a custom variable. This was working earlier, but is breaking now > saying it can't recognise the variable. The custom_variable_classes is > set in

[GENERAL] problem with custom_variable_classes

2008-09-24 Thread Malcolm Studd
Hi, I have a pl/pgSQL function[1] to calculate row numbers (based on [2]). It uses a custom variable. This was working earlier, but is breaking now saying it can't recognise the variable. The custom_variable_classes is set in the postgresql.conf. pgdb001=> select rownum('') from generate_ser