Re: pl/pgsql question

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Rhys Stewart <rhys(dot)stewart(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: pl/pgsql question
Date: 2006-05-12 15:12:32
Message-ID: 20060512151231.GA90627@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Scott Ribe 2006-05-12 15:13:59 Re: [PERFORM] Arguments Pro/Contra Software Raid
Previous Message Joshua D. Drake 2006-05-12 15:11:38 Re: GUI Interface