We can use NEW.columnname and we get it's value.
Can I use NEW variable as array to get it's values? like NEW[1] or NEW.1 ...Or if I pass column names in one text array to trigger function argument then can I use NEW.$1 to get 1st column value?
I have to do it only with language plpgsql
NEW.column_nameshould work; Using the ordinal position is brittle -- it can cause problems if someone changes the column order.