pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: hubert depesz lubaczewski <depesz@depesz.com>
To: stan <stanb@panix.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Use of perl modules in plperl ?
Date: Wed, 4 Mar 2020 12:15:50 +0100
Message-ID: <20200304111550.GA5582@depesz.com> (raw)
In-Reply-To: <20200304110322.GA4887@panix.com>
References: <20200304110322.GA4887@panix.com>

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






view thread (3+ messages)

Message-ID: <20200304111550.GA5582@depesz.com>
Permalink:  ../20200304111550.GA5582@depesz.com/
Also on:    postgresql.org/message-id/20200304111550.GA5582@depesz.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: depesz@depesz.com, stanb@panix.com
  Subject: Re: Use of perl modules in plperl ?
  In-Reply-To: <20200304111550.GA5582@depesz.com>
  References: <20200304110322.GA4887@panix.com> <20200304111550.GA5582@depesz.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox