Re: stored function (possible to access file system or call java program)?

From: Merlin Moncure <mmoncure(at)gmail(dot)com>
To: "J(dot)V(dot)" <jvsrvcs(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: stored function (possible to access file system or call java program)?
Date: 2011-10-03 21:12:35
Message-ID: CAHyXU0zjQ=Fv7b+6inC2Ck9x5Z6s3JG0LXDySNysUCYAGcSJzQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Oct 3, 2011 at 4:05 PM, J.V. <jvsrvcs(at)gmail(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message John R Pierce 2011-10-03 21:16:07 Re: stored function (possible to access file system or call java program)?
Previous Message Chris Travers 2011-10-03 21:08:15 Re: stored function (possible to access file system or call java program)?