Re: pl/pgsql question - Mailing list pgsql-general

From Michael Fuhr
Subject Re: pl/pgsql question
Date
Msg-id 20060512151231.GA90627@winnie.fuhr.org
Whole thread Raw
In response to pl/pgsql question  ("Rhys Stewart" <rhys.stewart@gmail.com>)
List pgsql-general
On Fri, May 12, 2006 at 09:54:23AM -0500, Rhys Stewart wrote:
> are there any function in pl/pgsql to call a shell script? or like is
> there a pl/bash?

PL/sh might be what you're after; you could also use PL/Perl, etc.

http://pgfoundry.org/projects/plsh/

What does the shell script do?  Having the database invoke external
actions isn't always a good idea; for example, if the transaction
rolls back then you can't undo those actions.  Some problems are
better solved with LISTEN/NOTIFY because notifications don't go out
unless and until the transaction commits.

--
Michael Fuhr

pgsql-general by date:

Previous
From: "Joshua D. Drake"
Date:
Subject: Re: GUI Interface
Next
From: Scott Ribe
Date:
Subject: Re: [PERFORM] Arguments Pro/Contra Software Raid