pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Fuhr <mike@fuhr.org>
To: Yves Vindevogel <yves.vindevogel@implements.be>
Cc: pgsql-performance@postgresql.org
Subject: Re: Executing a shell command from a PG function
Date: Sat, 10 Dec 2005 09:22:15 -0700
Message-ID: <20051210162215.GA42041@winnie.fuhr.org> (raw)
In-Reply-To: <439AFA8C.5070303@implements.be>
References: <439AFA8C.5070303@implements.be>

On Sat, Dec 10, 2005 at 04:55:56PM +0100, Yves Vindevogel wrote:
> Is it possible to run a shell script, passing values of fields to it, in 
> a Postgres function ?

Not directly from SQL or PL/pgSQL functions, but you can execute
shell commands with the untrusted versions of PL/Perl, PL/Tcl,
PL/Python, etc.  There's even a PL/sh:

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

-- 
Michael Fuhr



view thread (4+ messages)  latest in thread

Message-ID: <20051210162215.GA42041@winnie.fuhr.org>
Permalink:  ../20051210162215.GA42041@winnie.fuhr.org/
Also on:    postgresql.org/message-id/20051210162215.GA42041@winnie.fuhr.org

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: mike@fuhr.org, yves.vindevogel@implements.be
  Subject: Re: Executing a shell command from a PG function
  In-Reply-To: <20051210162215.GA42041@winnie.fuhr.org>

* 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