> > these values, and the AFTER trigger to do this calculation.
>
> Why don't you just do all the work in the BEFORE trigger?
For instance, If I do an UPDATE inside a function that will be triggered
by an UPDATE, won't it loop forever?
Does PostgreSQL support recursive functions?
Thanks