Thread: GUC custom variables broken

GUC custom variables broken

From
Thomas Hallgren
Date:
I have the following in my postgresql.conf

custom_variable_classes = 'pljava'
pljava.classpath = 
'C:\\Tada\\Workspace\\org.postgresql.pljava\\build\\pljava.jar'

It worked fine with 8.0.0beta2. The beta4 however, gives me the 
following message:
   FATAL:  unrecognized configuration parameter "pljava.classpath"

What happened?

Regards,
Thomas Hallgren




Re: GUC custom variables broken

From
Tom Lane
Date:
Thomas Hallgren <thhal@mailblocks.com> writes:
> What happened?

I broke it :-(.  Fix committed.
        regards, tom lane


Re: GUC custom variables broken

From
Thomas Hallgren
Date:
Thomas Hallgren wrote:
> I have the following in my postgresql.conf
> 
> custom_variable_classes = 'pljava'
> pljava.classpath = 
> 'C:\\Tada\\Workspace\\org.postgresql.pljava\\build\\pljava.jar'
> 
> It worked fine with 8.0.0beta2. The beta4 however, gives me the 
> following message:
> 
>    FATAL:  unrecognized configuration parameter "pljava.classpath"
> 
> What happened?>
Ah, I see what's wrong. It's in the guc_file.l

Previously, the "custom_variable_classes" was *set* first of all 
variables. Now, it's moved first in the linked list and then *tested* 
first of all. Subsequent tests of custom variables will of course then 
fail since the custom_variable_classes has not been set.

Perhaps this change could be reverted? Or perhaps someone has other 
preferences on implementation?

Regards,
Thomas Hallgren



Re: GUC custom variables broken

From
Thomas Hallgren
Date:
Tom Lane wrote:
> I broke it :-(.  Fix committed.
> 
Thanks, that was quick. You fixed it before I managed to find it.

Not that I'm in an extreme hurry, just curious. Are we using different 
CVS repositories with some latency in replication or something? I don't 
seem to get your fix yet.

Regards,
Thomas Hallgren



Re: GUC custom variables broken

From
Bruce Momjian
Date:
Thomas Hallgren wrote:
> Tom Lane wrote:
> > I broke it :-(.  Fix committed.
> > 
> Thanks, that was quick. You fixed it before I managed to find it.
> 
> Not that I'm in an extreme hurry, just curious. Are we using different 
> CVS repositories with some latency in replication or something? I don't 
> seem to get your fix yet.

Anonymous CVS has a lag.  I think it is 1/2 hour or an hour.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073