File I/O

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

File I/O

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

Re: File I/O

От:
Sean Davis <sdavis2@mail.nih.gov>
Дата:
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" <andreas.kretschmer@schollglas.com>
Дата:
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
FAQ