PL/Perl namespace fix - Mailing list pgsql-patches

From Michael Fuhr
Subject PL/Perl namespace fix
Date
Msg-id 20050820185145.GA75337@winnie.fuhr.org
Whole thread Raw
Responses Re: PL/Perl namespace fix
List pgsql-patches
The attached patch appears to fix the problem discussed in the
"plperl gives error after reconnect" thread in pgsql-bugs:

http://archives.postgresql.org/pgsql-bugs/2005-08/msg00133.php

Unfortunately I don't understand *why* it fixes the problem, which
means I'm not sure that it's the correct fix.  As Tom Lane and I
discovered, Perl builds with threading don't appear to have a
problem, while Perl builds without threading do.  It's not clear
to me why "mksafefunc" works in some Perl installations but
"::mksafefunc" is required in others, given otherwise identical
test conditions.  Can anybody explain?

If this is indeed the correct fix then it should probably be
backpatched to 8.0.

--
Michael Fuhr

Attachment

pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Fwd: Re: [HACKERS] For Review: Allow WAL information to recover
Next
From: Tom Lane
Date:
Subject: Re: PL/Perl namespace fix