Postgres Row Number Partition By Multiple Columns