Postgresql While Updating Tuple