Re: Access disk from plpython

From: Jeff Janes <jeff(dot)janes(at)gmail(dot)com>
To: "Rhys A(dot)D(dot) Stewart" <rhys(dot)stewart(at)gmail(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Access disk from plpython
Date: 2012-11-14 17:03:43
Message-ID: CAMkU=1yyNncj04tSDOu9MpW6L8Nazst=e218ARDgwKwKt39eRA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Nov 14, 2012 at 8:44 AM, Rhys A.D. Stewart
<rhys(dot)stewart(at)gmail(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2012-11-14 17:08:35 Re: Access disk from plpython
Previous Message Adrian Klaver 2012-11-14 16:53:43 Re: Access disk from plpython