Hacker News new | ask | show | jobs
by nkrumm 1263 days ago
We did something like this, by using postgresql's `set_config()` before every transaction. The trigger functions can read that value using `current_setting()`. It works for us, but for a relatively low-traffic internal application.