Обсуждение: File I/O

Поиск
Список
Период
Сортировка

File I/O

От
Greg Lindstrom
Дата:
Hello-
Is it possible to read and write directly to data (text) files using
PL/pgSQL?
Thanks!
--greg


Re: File I/O

От
Sean Davis
Дата:
Greg Lindstrom wrote:
> Hello-
> Is it possible to read and write directly to data (text) files using
> PL/pgSQL?
> Thanks!
see the COPY command in the manual.

Sean

Re: File I/O

От
"A. Kretschmer"
Дата:
am  Tue, dem 24.04.2007, um  9:29:15 -0500 mailte Greg Lindstrom folgendes:
> Hello-
> Is it possible to read and write directly to data (text) files using
> PL/pgSQL?

No, because pl/pgsql is a trusted language. Do you need file access,
then you can use a untrusted language like pl/perlU or pl/sh or other,
but not pl/pgsql.


Andreas
--
Andreas Kretschmer
Kontakt:  Heynitz: 035242/47150,   D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID:   0x3FFF606C, privat 0x7F4584DA   http://wwwkeys.de.pgp.net