I had a look at the patch and came up with the attached v2. I've separated the pgver change into its own patch as it's unrelated from the hash_get_num_entries change. For 0001 I also think we should cast usages of pgss_max when compated to hash_get_num_entries to make this complete, to clarify the code.
-- Daniel Gustafsson
v2-0002-Use-correct-data-type-for-version-identifier.patch
Description: Binary data
v2-0001-Use-int64-for-number-of-entries-in-pg_stat_statem.patch
Description: Binary data
