There's also another way using hstore instead of json:https://wiki.postgresql.org/wiki/Audit_trigger_91plus
--View this message in context: http://postgresql.nabble.com/comparing-two-JSON-objects-in-9-3-tp5803617p5897128.htmlSent from the PostgreSQL - general mailing list archive at Nabble.com.