Re: plperl crash with Debian 6 (64 bit), pl/perlu, libwww and https - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: plperl crash with Debian 6 (64 bit), pl/perlu, libwww and https
Date
Msg-id 4E3AAE04.5080700@dunslane.net
Whole thread Raw
In response to Re: plperl crash with Debian 6 (64 bit), pl/perlu, libwww and https  (Hannu Krosing <hannu@krosing.net>)
List pgsql-hackers

On 08/04/2011 09:53 AM, Hannu Krosing wrote:
>
>> What happens if you wrap the calls to the module like this?:
>>
>>       {
>>           local $SIG{ALRM};
>>           # do LWP stuff here
>>       }
>>       return 'OK';
>>
>>
>> That should restore the old handler on exit from the block.
>>
>> I think if you use a perl module that monkeys with the signal handlers
>> for any signal postgres uses all bets are off.
> Sure, but how expensive would it be for pl/perl to do this
> automatically ?
>
>

Probably not very. It could possibly be added to 
plc_perlboot.pl::mkfuncsrc() after the prolog, or maybe before.

cheers

andrew


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: plperl crash with Debian 6 (64 bit), pl/perlu, libwww and https
Next
From: Alexey Klyukin
Date:
Subject: Re: plperl crash with Debian 6 (64 bit), pl/perlu, libwww and https