Record notifications for non-empty diffs

Impacts the PostgreSQL storage backend only.