| От | Scott Marlowe |
|---|---|
| Тема | Re: Running Command Line From Trigger? |
| Дата | |
| Msg-id | 1144353260.32266.102.camel@state.g2switchworks.com обсуждение исходный текст |
| Ответ на | Running Command Line From Trigger? ("Yudie Pg" <yudiepg@gmail.com>) |
| Список | pgsql-general |
On Thu, 2006-04-06 at 14:48, Yudie Pg wrote: > I want to execute a command line from trigger function. > The reason is I want to execute my perl script from stored procedure. > Why not just install perl as a procedural language? It's one of a dozen or more available to you. Then you can write the whole trigger in perl instead of calling an external program. Note that perl, like many other languages, is available in a "trusted" and an "untrusted" version. The trusted versions aren't allowed to do dangerous things like access the file system and run external programs. Untrusted will do anything that perl can do from the command line. Note that plpgsql cannot run external programs on purpose. It's a security and safety issue.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера