Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1j9S19-0006QG-Ut for pgsql-general@arkaria.postgresql.org; Wed, 04 Mar 2020 11:16:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j9S18-0001Jc-Nq for pgsql-general@arkaria.postgresql.org; Wed, 04 Mar 2020 11:16:46 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j9S0I-0005F5-Kp for pgsql-general@lists.postgresql.org; Wed, 04 Mar 2020 11:15:54 +0000 Received: from lana.depesz.com ([88.198.49.178] helo=depesz.com) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j9S0F-0003qU-Fx for pgsql-general@lists.postgresql.org; Wed, 04 Mar 2020 11:15:54 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=depesz.com; s=20170201; h=In-Reply-To:Content-Type:MIME-Version:References:Reply-To: Message-ID:Subject:Cc:To:Sender:From:Date:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=GwKAIM4jB0DHjcfl8rabAB+U7qecl3chC0L8j4oYbNs=; b=D1sfrkN2Izb4w3TOulVsRK38Dp 188bCJjdLfVXYYaWZbgl+ZpQxgfR8KPpij0E6d6Fg75oLDWa9yMshCJgEXZXZ5KWlqdWDrBlI+o7v pFz28vPzvn5zdvFdPmNNde967vFX5LjZG5bvafZvyIb/x/VlMgb4MDU3urD3sSD1wYOU=; Received: from lana.depesz.com ([88.198.49.178] helo=depesz.com) by depesz.com with esmtpa (Exim 4.92) (envelope-from ) id 1j9S0E-0007oQ-6g; Wed, 04 Mar 2020 12:15:50 +0100 Date: Wed, 4 Mar 2020 12:15:50 +0100 From: hubert depesz lubaczewski Sender: depesz@depesz.com To: stan Cc: pgsql-general@lists.postgresql.org Subject: Re: Use of perl modules in plperl ? Message-ID: <20200304111550.GA5582@depesz.com> Reply-To: depesz@depesz.com References: <20200304110322.GA4887@panix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200304110322.GA4887@panix.com> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Wed, Mar 04, 2020 at 06:03:22AM -0500, stan wrote: > I am trying to examine the values of $_TD->{new}. I thought the easiest way > to see what this structure looked like was to use the Dumper functionality. > To do so I need to include the appropriate Perl module, which I would think > would be done like this: > use Data::Dumper qw(Dumper); plperl is trusted, and you can't use "use" in it. More on this: https://www.postgresql.org/docs/current/plperl-trusted.html You have two options: 1. Switch to pl/PerlU 2. set plperl.on_init to whatever "use" you need, examples: https://www.postgresql.org/docs/current/plperl-under-the-hood.html#PLPERL-CONFIG Best regards, depesz