Fix version comparison in Version.pm

Andrew Dunstan <andrew@dunslane.net>

Commit: 038512f71ea807d6c2b8e519f2416a9a5283d9bf
Author: Andrew Dunstan <andrew@dunslane.net>
Date: 2022-11-18T13:47:46Z
Releases: 14.7
Fix version comparison in Version.pm

Version strings with unequal numbers of parts were being compared
incorrectly. We cure this by treating a missing part in the shorter
version as 0.

per complaint from Jehan-Guillaume de Rorthais, but the fix is mine, not
his.

Discussion: https://postgr.es/m/20220628225325.53d97b8d@karst

Backpatch to release 14 where this code was introduced.

Files

PathChange+/−
src/test/perl/PostgresVersion.pm modified +6 −3