Skip site navigation (1) Skip section navigation (2)

Re: executing OS programs from pg

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: Gevik babakhani <gevik(at)xs4all(dot)nl>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: executing OS programs from pg
Date: 2005-06-03 19:33:02
Message-ID: 20050603193302.GB25970@wolff.to (view raw or flat)
Thread:
Lists: pgsql-hackers
On Fri, Jun 03, 2005 at 20:56:44 +0200,
  Gevik babakhani <gevik(at)xs4all(dot)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.

In response to

pgsql-hackers by date

Next:From: Jonah H. HarrisDate: 2005-06-03 19:58:06
Subject: Re: PostgreSQL Developer Network
Previous:From: Bruno Wolff IIIDate: 2005-06-03 19:24:51
Subject: Re: O_DIRECT for WAL writes

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group