supa_audit
audit-trigger
Our great sponsors
supa_audit | audit-trigger | |
---|---|---|
4 | 2 | |
610 | 10 | |
2.5% | - | |
5.0 | 10.0 | |
4 months ago | over 3 years ago | |
PLpgSQL | PLpgSQL | |
Apache License 2.0 | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
supa_audit
-
Implementing system-versioned tables in Postgres
this approach is also available as an extension here:
https://github.com/supabase/supa_audit
it uses a slightly more generic implementation so that you can easily turn on/off auditing. i.e.
select audit.enable_tracking('public.account'::regclass);
- Table Auditing in PostgreSQL with Supa_audit
- Postgres Auditing in 150 lines of SQL
audit-trigger
-
Postgres Auditing in 150 lines of SQL
I've been using my own audit trigger for 3 years now.
https://github.com/cmabastar/audit-trigger
It uses the old and tested http://wiki.postgresql.org/wiki/Audit_trigger_91plus
but with JSONB instead of HSTORE, and automatically creates partitioned tables by month (Requires PG11+).
What are some alternatives?
audit-trigger - Simple, easily customised trigger-based auditing for PostgreSQL (Postgres). See also pgaudit.
sgr - sgr (command line client for Splitgraph) and the splitgraph Python library
yugabyte-db - YugabyteDB - the cloud native distributed SQL database for mission-critical applications.
sirix - SirixDB is an an embeddable, bitemporal, append-only database system and event store, storing immutable lightweight snapshots. It keeps the full history of each resource. Every commit stores a space-efficient snapshot through structural sharing. It is log-structured and never overwrites data. SirixDB uses a novel page-level versioning approach.
drizzle-pg-notify-audit-table - example project of using pg-notify and custom trigger for audit table
bemi - Automatic data change tracking for PostgreSQL
bemi-prisma - Automatic data change tracking for Prisma