2023 LLVM Developers' Meeting
https://llvm.org/devmtg/2023-10
Postgres Auditing in 150 lines of SQL
a generic db trigger, saving changes as JSONB field in a generic db table.
simpler, not generic example
Working with Postgres Audit Triggers | EDB
Audit trigger - PostgreSQL wiki