in reply to
postgres 8.3 plperlu gethostbyname weird behavior
Based on your description, it looks the problem is related to postgresql 8.3.7, because like you said perl works outside of the database.
Comment on
Re: postgres 8.3 plperlu gethostbyname weird behavior
In Section
Seekers of Perl Wisdom