Re: executing OS programs from pg - Mailing list pgsql-hackers

From Bruno Wolff III
Subject Re: executing OS programs from pg
Date
Msg-id 20050603193302.GB25970@wolff.to
Whole thread Raw
In response to executing OS programs from pg  ("Gevik babakhani" <gevik@xs4all.nl>)
List pgsql-hackers
On Fri, Jun 03, 2005 at 20:56:44 +0200, Gevik babakhani <gevik@xs4all.nl> wrote:
> Dear people,
> 
>  
> 
> Does anyone know how to execute an OS command from pgsql. I would like to
> create a trigger that op on firing would run/execute an external program.
> 
> Does such functionality exist or do I have to write my own trigger function
> in C.

You would have to write your own trigger, though you could use other languages
than C (e.g. untrusted perl).

Another option is to communicate with an external program using notify.


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: executing OS programs from pg
Next
From: "Jonah H. Harris"
Date:
Subject: Re: PostgreSQL Developer Network