pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alex Pilosov <alex@pilosoft.com>
To: Stephan Szabo <sszabo@megazone23.bigpanda.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: pl/sh (was Re: calling a shell script from pl/pgsql)
Date: Mon, 10 Sep 2001 14:24:31 -0400 (EDT)
Message-ID: <Pine.BSO.4.10.10109101423360.17071-100000@spider.pilosoft.com> (raw)
In-Reply-To: <Pine.BSF.4.21.0109101117440.15751-100000@megazone23.bigpanda.com>

On Mon, 10 Sep 2001, Stephan Szabo wrote:

> 
> On Mon, 10 Sep 2001, Alex Pilosov wrote:
> 
> > On Mon, 10 Sep 2001, Stephan Szabo wrote:
> > 
> > > On Mon, 10 Sep 2001, Jeff Barrett wrote:
> > > 
> > > > How can I call a shell script from within a pl/pgsql function that is called
> > > > as from a trigger. I do not want to interact with the script I just want it
> > > > to run. I do want the trigger to wait for the script it called to complete
> > > > before returning a value.
> > > > 
> > > > Any ideas would be greatly appreciated.
> > > 
> > > I don't think you can do that from within pl/pgsql.  You'd probably need a
> > > function in pl/tclu or c.
> > Or pl/perlu! (Sorry, had to say it).
> 
> I thought perlu was added after 7.1?  I considered mentioning it, but
> realized that it wouldn't help if it wasn't there yet.
Sorry, my fault, I thought pl/tclu is also a new language, but it
apparently is in 7.1...Yes, for existing postgres, its pltclu or C,
sorry :)

-alex




view thread (4+ messages)  latest in thread

Message-ID: <Pine.BSO.4.10.10109101423360.17071-100000@spider.pilosoft.com>
Permalink:  ../Pine.BSO.4.10.10109101423360.17071-100000@spider.pilosoft.com/
Also on:    postgresql.org/message-id/Pine.BSO.4.10.10109101423360.17071-100000@spider.pilosoft.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: alex@pilosoft.com, sszabo@megazone23.bigpanda.com
  Subject: Re: pl/sh (was Re: calling a shell script from pl/pgsql)
  In-Reply-To: <Pine.BSO.4.10.10109101423360.17071-100000@spider.pilosoft.com>
  References: <Pine.BSF.4.21.0109101117440.15751-100000@megazone23.bigpanda.com> <Pine.BSO.4.10.10109101423360.17071-100000@spider.pilosoft.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox