Re: Access disk from plpython - Mailing list pgsql-general

From Jeff Janes
Subject Re: Access disk from plpython
Date
Msg-id CAMkU=1yyNncj04tSDOu9MpW6L8Nazst=e218ARDgwKwKt39eRA@mail.gmail.com
Whole thread Raw
In response to Access disk from plpython  ("Rhys A.D. Stewart" <rhys.stewart@gmail.com>)
Responses Re: Access disk from plpython
List pgsql-general
On Wed, Nov 14, 2012 at 8:44 AM, Rhys A.D. Stewart
<rhys.stewart@gmail.com> wrote:
> Greetings all,
>
> having a permission issue with writing a file using plpython to a local
> folder, changed permissions to everyone read and write and even changed the
> owner to postgres. but no joy, any suggestions?

plpython is a "trusted" langauge.  That means pgsql trusts it not to
allow you to break out of the sandbox and interact directly with the
file system or the database server internals.

If you need to do those things, you can use plpythonu.

Cheers,

Jeff


pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: Access disk from plpython
Next
From: Adrian Klaver
Date:
Subject: Re: Access disk from plpython