Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
debezium
Change data capture for a variety of databases. Please log issues at https://issues.redhat.com/browse/DBZ.
You can use pgaudit, it's an extension that let's you audit DDL/DML statements. It's a great auditing mechanism. I use it on all our prod postgres instances, but have only "DML" enabled, because of the potential performance overhead
An overkill-but-robust solution is Redhat's Debezium [1]. It works with multiple databases, but for Postgres specifically uses the logical decoding API that underpins replication. Changes are pushed into Kafka, or a custom app-specific connector.
Debezium is awesome, thanks for the great work! It's in my toolbox for when embulk [1] batch processing doesn't cut it.