Writing · Tag
Articles tagged "postgres-triggers".
1 article on this topic.
Articles tagged "postgres-triggers"
·8 min read · postgres , supabase , postgres-triggers
How to build a tamper-evident audit log in Postgres with one trigger
Build an audit log table, attach a SECURITY DEFINER trigger that captures every UPDATE and DELETE, lock it down with RLS. Forty lines of SQL.