Vitaly Belman <vitalyb(at)gmail(dot)com> writes:> What can I do to check inequality even in the case that old or new> series_id is NULL?
Try IS DISTINCT FROM.
regards, tom lane