How can I use a PostgreSQL triggers to store changes (SQL statements and row changes)
example of an audit trigger from https://www.postgresql.org/docs/current/static/plpgsql-trigger.html CREATE TABLE emp ( empname text NOT NULL, salary integer ); CREATE TABLE emp_audit( operation char(1) NOT NULL, stamp timestamp NOT NULL, userid text NOT NULL, empname text NOT NULL, salary integer ); CREATE OR REPLACE FUNCTION process_emp_audit() RETURNS TRIGGER AS $emp_audit$ BEGIN — — Create a row … Read more