GUC custom variables broken

Started by Thomas Hallgrenabout 21 years ago6 messages
#1Thomas Hallgren
thhal@mailblocks.com

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

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Thomas Hallgren (#1)
Re: GUC custom variables broken

Thomas Hallgren <thhal@mailblocks.com> writes:

What happened?

I broke it :-(. Fix committed.

regards, tom lane

#3Thomas Hallgren
thhal@mailblocks.com
In reply to: Thomas Hallgren (#1)
Re: GUC custom variables broken

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

#4Thomas Hallgren
thhal@mailblocks.com
In reply to: Tom Lane (#2)
Re: GUC custom variables broken

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

#5Tom Lane
tgl@sss.pgh.pa.us
In reply to: Thomas Hallgren (#1)
Re: GUC custom variables broken

Thomas Hallgren <thhal@mailblocks.com> writes:

Not that I'm in an extreme hurry, just curious. Are we using different
CVS repositories with some latency in replication or something?

The anon-CVS repository syncs to the master once an hour, last I heard.

regards, tom lane

#6Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Thomas Hallgren (#4)
Re: GUC custom variables broken

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, Pennsylvania 19073