You are right, that's why the loop doesn't goes through all the columns.
Thanks.
Jan Wieck wrote:
The arrays NEW and OLD only contain entries for attributes in the respective rows that are not NULL. The list $TG_relatts contains a list of all column names of the triggering relation with a leading empty element (to make the index in that list reflect pg_attribute.attnum).
-- Josué Maldonado.
---------------------------(end of broadcast)--------------------------- TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]