Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TKuJT-00065j-SL for pgsql-bugs@postgresql.org; Sun, 07 Oct 2012 17:06:48 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TKuJS-00064E-8N for pgsql-bugs@postgresql.org; Sun, 07 Oct 2012 17:06:47 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id q97H6hs7013684; Sun, 7 Oct 2012 13:06:43 -0400 (EDT) From: Tom Lane To: franco.ricci@phys.uniroma1.it cc: pgsql-bugs@postgresql.org Subject: Re: BUG #7586: PL/Perl problem In-reply-to: References: Comments: In-reply-to franco.ricci@phys.uniroma1.it message dated "Sat, 06 Oct 2012 14:14:47 -0000" Date: Sun, 07 Oct 2012 13:06:43 -0400 Message-ID: <13683.1349629603@sss.pgh.pa.us> X-Pg-Spam-Score: -4.0 (----) X-Archive-Number: 201210/47 X-Sequence-Number: 34347 franco.ricci@phys.uniroma1.it writes: > I wrote the following function in Perl to make some operations with LLRP > command in a RFID application: > ---- > CREATE OR REPLACE FUNCTION llrp_command.llrpenc_bytea(xml) > RETURNS bytea AS > $BODY$ > use strict; > use RFID::LLRP::Builder qw(encode_message); I don't know anything about RFID::LLRP::Builder, but some quick googling suggests that it accesses libxml2 under the hood. If so, and if it relies on being able to fetch external entities, you're going to need to use PG 9.2 to make this work. The fix for CVE-2012-3489 broke such cases in earlier branches. Sorry about that, but the alternatives were worse; and in any case, pre-9.2 versions never made any serious effort to allow other uses of libxml2 inside the backend. It's mostly luck that it worked for you before, I think. regards, tom lane