Andreas,
> This doesn't cover case 3, since UPDATE ... SET b=b will lead to> NEW.b=OLD.b
Why do you care about SET b = b?
And shouldn't this discussion be on the PGSQL-SQL list?
-- Josh BerkusAglio Database SolutionsSan Francisco