Postgresql Trigger For Each Row Of Dataframe Index