Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U66cx-0002Y0-Ch for pgsql-bugs@arkaria.postgresql.org; Thu, 14 Feb 2013 21:45:59 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1U66cw-0003kF-TS for pgsql-bugs@arkaria.postgresql.org; Thu, 14 Feb 2013 21:45:58 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U66cw-0003kA-AJ for pgsql-bugs@postgresql.org; Thu, 14 Feb 2013 21:45:58 +0000 Received: from mahout.postgresql.org ([2001:4800:7903:4::123]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U66cv-0001ps-FQ for pgsql-bugs@postgresql.org; Thu, 14 Feb 2013 21:45:57 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U66cv-00062N-21 for pgsql-bugs@postgresql.org; Thu, 14 Feb 2013 21:45:57 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1U66cu-0004dL-Qg for pgsql-bugs@postgresql.org; Thu, 14 Feb 2013 21:45:56 +0000 Date: Thu, 14 Feb 2013 21:45:56 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #7882: plperl poor error message To: pgsql-bugs@postgresql.org From: jeff.janes@gmail.com X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 7882 Logged by: Jeff Janes Email address: jeff.janes@gmail.com PostgreSQL version: 9.2.3 Operating system: Linux Description:=20=20=20=20=20=20=20=20 If plperl.on_init attempts to load a module which does not exist, then attempts to use plperl give a reasonable error message upon first attempt, but after that the error message is rather cryptic. in postgresql.conf: plperl.on_init=3D'use Nonexistent::Module;' CREATE OR REPLACE FUNCTION perlfunc(text) RETURNS text AS $BODY$ return scalar reverse $_[0]; $BODY$ LANGUAGE plperl; ERROR: Can't locate Nonexistent/Module.pm in @INC (@INC contains: ... .) at -e line 98. BEGIN failed--compilation aborted CONTEXT: while parsing Perl initialization Upon a second attempt, the error becomes much less useful: CREATE OR REPLACE FUNCTION perlfunc(text) RETURNS text AS $BODY$ return scalar reverse $_[0]; $BODY$ LANGUAGE plperl; ERROR: attempt to redefine parameter "plperl.use_strict" --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs