Why not just write the trigger function as:
if old.a is distinct from new.a or old.b is distinct from new.b...end if
-- Scott Ribescott_ribe(at)killerbytes(dot)comhttp://www.killerbytes.com/(303) 722-0567 voice