| From: | Mark Kirkwood <markir(at)coretech(dot)co(dot)nz> |
|---|---|
| To: | pgsql-hackers(at)postgresql(dot)org |
| Subject: | Plperl Safe version check fails for Safe 2.09 |
| Date: | 2004-11-24 00:32:04 |
| Message-ID: | 41A3D684.4090702@coretech.co.nz |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
It seems that the check in src/pl/plperl/plperl.c
eval_pv((safe_version < 2.09 ? safe_bad : safe_ok), FALSE);
is not working quite as expected (CVS HEAD from today):
I have Safe.pm at version 2.09, yet any plperl function I run fails with :
ERROR: error from function: trusted perl functions disabled - please
upgrade perl Safe module to at least 2.09 at (eval 4) line 1.
Just to be sure I amended the test code to :
elog(INFO, "Safe version = %f", safe_version);
eval_pv((safe_version < 2.09 ? safe_bad : safe_ok), FALSE);
and I see :
INFO: Safe version = 2.090000
(Followed by the error)
I confess some puzzlement - as the code *looks* like it should work!
The platform is Linux 2.4.22 glibc 2.3.2, perl 5.8.0 (Patched Redhat 9)
regards
Mark
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Marc G. Fournier | 2004-11-24 00:43:56 | Re: Beta5 now Available |
| Previous Message | Thomas Hallgren | 2004-11-23 23:27:35 | Re: Beta5 now Available |