Teach PostgresVersion all the ways to mark non-release code
authorAndrew Dunstan <andrew@dunslane.net>
Sat, 24 Apr 2021 13:37:20 +0000 (09:37 -0400)
committerAndrew Dunstan <andrew@dunslane.net>
Sat, 24 Apr 2021 13:37:20 +0000 (09:37 -0400)
commitaa271209f6d995488fc5cba9731415f974823990
tree04bdcf99645acdd527d488cad1be91012da051fa
parent9b5558e7ad4706bbd53947e5b4d7c06e150390a5
Teach PostgresVersion all the ways to mark non-release code

As well as 'devel' version_stamp.pl provides for 'alphaN'
'betaN' and 'rcN', so teach PostgresVersion about those.

Also stash the version string instead of trying to reconstruct it during
stringification.

Discussion: https://postgr.es/m/YIHlw5nSgAHs4dK1@paquier.xyz
src/test/perl/PostgresVersion.pm