Re:

From: "Scott Marlowe" <smarlowe(at)qwest(dot)net>
To: "erdenemandal" <erdene(at)teltra(dot)org>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re:
Date: 2004-07-08 16:50:46
Message-ID: 1089305446.32059.7.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Mon, 2004-07-05 at 06:39, erdenemandal wrote:
> Hello,
>
>
>
> My name is Erdenemandal. I am using PostgreSQL and plpgsql language. I
> am wondering , is it possible to call shell programm from plpgsql
> language. I want to create XML file from Database.
>
>
>
> I mean I want to use plpgsql language for export settings (in
> database) in XML format.

There are two classes of procedural languages in PostgreSQL, safe and
unsafe. Safe procedural languages don't do anything with file systems,
email, etc... plpgsql is one of the safe languages. Unsafe languages
are allowed to do more dangerous things, like play with the file system
etc...

There's a stub called pl/sh out there somewhere that literally lets you
pretty much just call shell scripts from within postgresql. Any other
unsafe language will also let you do this, like tcl, perl, or php.

In response to

  • at 2004-07-05 12:39:01 from erdenemandal

Browse pgsql-admin by date

  From Date Subject
Next Message Hilary Forbes 2004-07-08 17:00:10 Re: Problems upgrading to 7.4
Previous Message Bruno Wolff III 2004-07-08 16:47:36 Re: Connect to postgres from a script using password