Re: Access disk from plpython

Поиск
Список
Период
Сортировка
От Adrian Klaver
Тема Re: Access disk from plpython
Дата
Msg-id 50A3CC97.4010904@gmail.com
обсуждение исходный текст
Ответ на Access disk from plpython  ("Rhys A.D. Stewart" <rhys.stewart@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: Access disk from plpython
Следующее
От: Jeff Janes
Дата:
Сообщение: Re: Access disk from plpython