title: Postgres: Is there a way of executing code following a INSERT statement?
body: <p>This may seem strange, but I was curious to know if it was possible for a code block to be executed following an INSERT statement in a postgres database?</p>
  
  <p>Specifically, I'm interested in executing Python code after an INSERT statement has occurred in a pg database.</p>