title: Can a PostgreSQL stored procedure call an external program?
body: <p>I'm looking through the PostgreSQL "<a href="http://www.postgresql.org/docs/9.4/static/server-programming.html" rel="nofollow">Server Programming</a>" documentation for writing stored procedures. I'd like to have a stored procedure call an existing external shell script to perform a task, and then return the results.</p>
  
  <p>I haven't found this in the documentation. Is this supported?</p>