Re: Access disk from plpython

From: Adrian Klaver <adrian(dot)klaver(at)gmail(dot)com>
To: "Rhys A(dot)D(dot) Stewart" <rhys(dot)stewart(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Access disk from plpython
Date: 2012-11-14 16:53:43
Message-ID: 50A3CC97.4010904@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(dot)klaver(at)gmail(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jeff Janes 2012-11-14 17:03:43 Re: Access disk from plpython
Previous Message Adrian Klaver 2012-11-14 16:47:51 Re: Access disk from plpython