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

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: stored function (possible to access file system or call java program)?
Дата
Msg-id CAHyXU0zjQ=Fv7b+6inC2Ck9x5Z6s3JG0LXDySNysUCYAGcSJzQ@mail.gmail.com
обсуждение исходный текст
Ответ на stored function (possible to access file system or call java program)?  ("J.V." <jvsrvcs@gmail.com>)
Ответы Re: stored function (possible to access file system or call java program)?
Список 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 по дате отправления:

Предыдущее
От: Chris Travers
Дата:
Сообщение: Re: stored function (possible to access file system or call java program)?
Следующее
От: John R Pierce
Дата:
Сообщение: Re: stored function (possible to access file system or call java program)?