Can a PostgreSQL stored procedure call an external program? -


i'm looking through postgresql "server programming" documentation writing stored procedures. i'd have stored procedure call existing external shell script perform task, , return results.

i haven't found in documentation. supported?

"untrusted" pls pl/perlu or pl/pythonu can, can c user-defined functions.

it's not great idea though. if call external program , rollback transaction, external program won't know rollback. you're breaking out of transaction management.

it typically better use notify send work daemon connected , listening events.


Comments

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -