IF IS DISTINCT FROM, excluding a given colum?

Viewed 22

I have a PL/pgSQL function (triggering when I UPDATE a row) that includes this statement:

IF NEW IS NOT DISTINCT FROM OLD THEN
  RETURN OLD;
END IF;

Is there any way I can exclude a particular column from the IS DISTINCT FROM comparison?

0 Answers
Related