How do I get the set of changed columns in a PostgreSQL UPDATE trigger function?
I have a simple function triggered on any updates to a PostgreSQL 14 table: CREATE OR REPLACE FUNCTION track_changes() RETURNS TRIGGER AS $body$ BEGIN raise notice 'old is: "%"', OLD; raise notice 'new is: "%"', NEW; END; $body$ LANGUAGE plpgsql…