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

From Adrian Klaver
Subject Re: Access disk from plpython
Date
Msg-id 50A3CC97.4010904@gmail.com
Whole thread Raw
In response to Access disk from plpython  ("Rhys A.D. Stewart" <rhys.stewart@gmail.com>)
List pgsql-general
On 11/14/2012 08:48 AM, Rhys A.D. Stewart wrote:
> This is it:
>
> ERROR:  IOError: [Errno 13] Permission denied: '/root/p1/me.txt'
>
> CONTEXT:  Traceback (most recent call last):
>
>    PL/Python anonymous code block, line 3, in <module>
>
>      t = open('/root/p1/me.txt','w')
>
> PL/Python anonymous code block
>

CCing the list.

Does the file already exist?
If so, does the file itself have the correct permissions?

--
Adrian Klaver
adrian.klaver@gmail.com


pgsql-general by date:

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