New ask Hacker News story: Ask HN: How do you implement audit trail for a product?

Ask HN: How do you implement audit trail for a product?
6 by _448 | 3 comments on Hacker News.
Say I want to log every change to the database, how does one go about implementing that when using open source DBs like Postgres or CouchDB? Are there open source, on-premise solutions available for this? Also, what other factors need to be considered when implementing audit trail?