Consistency update for the postgresql update sql