Re: file I/O in plpgsql - Mailing list pgsql-general

From Andreas Kretschmer
Subject Re: file I/O in plpgsql
Date
Msg-id 20060429142145.GA10077@KanotixBox
Whole thread Raw
In response to file I/O in plpgsql  (Jessica M Salmon <jmsalmon@fs.fed.us>)
List pgsql-general
Jessica M Salmon <jmsalmon@fs.fed.us> schrieb:

>
> I'm trying to write out query results to a text file from within a plpgsql
> function, but having trouble. Can anyone tell me if this is possible? I'm

IIRC no, you don't have access to the file system. PLPGSQL is a
*trusted* language. You have access to the file system with untrusted
languages like plpgperlu.


> trying to perform \o filename, then select, but it squawks about no

\o is a psql-client - feature.


Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect.                              (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly."    (unknow)
Kaufbach, Saxony, Germany, Europe.              N 51.05082°, E 13.56889°

pgsql-general by date:

Previous
From: "Florian G. Pflug"
Date:
Subject: Re: configure: error
Next
From: Terry Lee Tucker
Date:
Subject: Re: file I/O in plpgsql