We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 618bd11 + 3f8212b commit e3f75c6Copy full SHA for e3f75c6
audit.sql
@@ -122,7 +122,7 @@ BEGIN
122
END IF;
123
124
IF (TG_OP = 'UPDATE' AND TG_LEVEL = 'ROW') THEN
125
- audit_row.row_data = hstore(OLD.*);
+ audit_row.row_data = hstore(OLD.*) - excluded_cols;
126
audit_row.changed_fields = (hstore(NEW.*) - audit_row.row_data) - excluded_cols;
127
IF audit_row.changed_fields = hstore('') THEN
128
-- All changed fields are ignored. Skip this update.
0 commit comments