Skip to content

FindPostgreSQL: support version encoding used in pre-10 releases

Brad King requested to merge brad.king/cmake:findpostgres-10-and-older into master

Backport !3993 (merged) to 3.14 branch.

With the 10.x release, PostgreSQL upstream started encoding the version as MMmmmm where M is major and m is minor. Prior to that, MMmmPP was used where P was the patch number. Detect this difference and decode it based on the used encoding.

Fixes: #19912 (closed)

Merge request reports