Re: stored function (possible to access file system or call java program)? - Mailing list pgsql-general

From Merlin Moncure
Subject Re: stored function (possible to access file system or call java program)?
Date
Msg-id CAHyXU0zjQ=Fv7b+6inC2Ck9x5Z6s3JG0LXDySNysUCYAGcSJzQ@mail.gmail.com
Whole thread Raw
In response to stored function (possible to access file system or call java program)?  ("J.V." <jvsrvcs@gmail.com>)
Responses Re: stored function (possible to access file system or call java program)?  (John R Pierce <pierce@hogranch.com>)
List pgsql-general
On Mon, Oct 3, 2011 at 4:05 PM, J.V. <jvsrvcs@gmail.com> wrote:
> Is it possible within a stored function to:
>    1) Access the file system (to rename a file for example)
>    2) Call a java program

sounds like you should be using pl/sh
(http://plsh.projects.postgresql.org/) or pl/java
(http://pgfoundry.org/projects/pljava/).

just remember, try not to get into situation where your function
blocks indefinitely waiting for called program to exist.  keep it
short and sweet, or spawn the program off and collect the response in
separate transaction.

merlin

pgsql-general by date:

Previous
From: Chris Travers
Date:
Subject: Re: stored function (possible to access file system or call java program)?
Next
From: John R Pierce
Date:
Subject: Re: stored function (possible to access file system or call java program)?