Re: file I/O in plpgsql

From: Andreas Kretschmer <akretschmer(at)spamfence(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: file I/O in plpgsql
Date: 2006-04-29 14:21:45
Message-ID: 20060429142145.GA10077@KanotixBox
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Jessica M Salmon <jmsalmon(at)fs(dot)fed(dot)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°

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Terry Lee Tucker 2006-04-29 14:23:54 Re: file I/O in plpgsql
Previous Message Florian G. Pflug 2006-04-29 14:19:24 Re: configure: error