From: Keith Worthington <keithw@narrowpathinc.com>
To: Joshua D. Drake <jd@commandprompt.com>
Cc: PostgreSQL Interfaces <pgsql-interfaces@postgresql.org>
Subject: Re: plperl user function
Date: Thu, 21 Apr 2005 16:07:27 -0400
Message-ID: <20050421200109.M30783@narrowpathinc.com> (raw)
In-Reply-To: <42680480.7080805@commandprompt.com>
References: <20050421194438.M68704@narrowpathinc.com>
<42680480.7080805@commandprompt.com>
On Thu, 21 Apr 2005 12:52:32 -0700, Joshua D. Drake wrote
> >
> > This leaves me with two questions.
> > 1) Why can I not use "use strict;" or "use warnings;" as they
> > are apparently good perl programming practice.
> [snip]
> > Kind Regards,
> > Keith
>
> Actually it is excellent practice so don't feel bad. The reason you
> can't use them is that in order to support them in plPerl you have
> to access the module. The module itself is a file on the filesystem.
>
> You can not open files on the filesystem via a plperl function
> unless you install it as untrusted.
>
> Try installing plperlU and then running your function.
[snip]
> Sincerely,
>
> Joshua D. Drake
Well, I am blown away by how this stuff works. After a createlang command I
put the two use commands back into my function and changed the language. Now
all I have to figure out is the RETURN problem.
Another question: Is there an issue with using the untrusted perl language?
If the code is tested and working is there any real reason to continue to have
"use strict;" and "use warnings;" in the function?
Kind Regards,
Keith
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 using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: keithw@narrowpathinc.com, jd@commandprompt.com
Subject: Re: plperl user function
In-Reply-To: <20050421200109.M30783@narrowpathinc.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