EXTPROC External Procedure

From: Roy Souther <roy(at)silicontao(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: EXTPROC External Procedure
Date: 2005-02-09 18:29:21
Message-ID: 200502091129.25973.roy@silicontao.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I cannot find any information about wether PostgreSQL has EXTPROC or not. Can
someone tell me if it dose or if there is a better way to do this.

I need to be able to run a program when some data is requested from the
database. Some query will do a SELECT on a known table and I need to have
some event trigger that makes a call to generate a small XML file and then
post it to a web server, get a reply back and then update a local table with
the information it received.

I have looked at how to do this in Oracle but I want to use PostgreSQL.
For Oracle I found this, http://www.orafaq.com/faqplsql.htm#OSCOMMAND. In
Oracle I need to make an EXTPROC call a bash script that will run wget and
then the bash script will make a new connection to the database to send it
the result data. The EXTPROC will not require any returned information. It
just needs to start the action.

Is there any way this can be done in PostgreSQL? Is there some other way to do
this?

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Joe Lester 2005-02-09 18:32:33 Re: Postgresql and Macintosh
Previous Message Ed L. 2005-02-09 18:00:00 Understanding EXPLAIN ANALYZE output