Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Show HN: Use Python to safely run Postgres triggers (github.com/skamensky)
2 points by samanator on May 11, 2020 | hide | past | favorite | 1 comment



Hi Hacker News Readers!

This is my first submission here but I've been reading religiously for a year or so. You can use plpy-wrapper as way to generate python trigger definitions which ensures some of the more obscure errors bubble up as actual exceptions (as opposed to noops).

Given that this is a wrapper-style library, more functionality can be added to complement the native plpy module that postgres ships with.

I'd love any critique, suggestion, or input you may have.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: