Postgresql Update Trigger Function Example On Graph