I had two tables table1 and table2.
table1 has three entries - id primary key, fd foreign key(table2), val_t1
table2 has 2 entries - fd primary key, val_t2
If val_t1 of any row in the table1 is updated, it should trigger a function with the corresponding value of fd field as an argument. This fd should be used in the trigger function to get the corresponding val_t2 from the table2.
I have read about TG_ARGV but unable to use it in the trigger.