Postgres Row Number Partition By Sql Syntax For Update