This is a discussion on writing a file using procedure within the Pgsql General forums, part of the PostgreSQL category; --> Can we write/read a file in postgresql procedure ?...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Am Donnerstag, 2. Juni 2005 11:36 schrieb Nageshwar Rao: > Can we write/read a file in postgresql procedure ? That depends on the language you use. PL/PerlU and PL/sh can do it, for example, whereas plain PL/Perl or PL/pgSQL cannot. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---------------------------(end of broadcast)--------------------------- TIP 3: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to majordomo@postgresql.org so that your message can get through to the mailing list cleanly |
| |||
| Am Donnerstag, den 02.06.2005, 15:06 +0530 schrieb Nageshwar Rao: > Can we write/read a file in postgresql procedure ? Yes. -- Tino Wildenhain <tino@wildenhain.de> ---------------------------(end of broadcast)--------------------------- TIP 6: Have you searched our list archives? http://archives.postgresql.org |
| |||
| Nageshwar Rao wrote: > Can we write/read a file in postgresql procedure ? Using one of the "untrusted" languages, yes. They can only be used by an administrator but have access to the full capabilities of the underlying procedural language. Of course, you will read and write files as the user PostgreSQL runs as, which opens up a whole world of possibilities regarding security breaches and database destruction. -- Richard Huxton Archonet Ltd ---------------------------(end of broadcast)--------------------------- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq |
| ||||
| On Thu, Jun 02, 2005 at 11:00:56AM +0100, Richard Huxton wrote: > Nageshwar Rao wrote: > >Can we write/read a file in postgresql procedure ? > > Using one of the "untrusted" languages, yes. They can only be used by an > administrator but have access to the full capabilities of the underlying > procedural language. To qualify the above: only database superusers can create functions written in an untrusted language, but any user can call such functions. -- Michael Fuhr http://www.fuhr.org/~mfuhr/ ---------------------------(end of broadcast)--------------------------- TIP 4: Don't 'kill -9' the postmaster |