Change the way how the extension version is obtained in fn_make_estimate_table
Motivation
- the ext version is now selected from pg_available_extension_versions which is dependent on the /usr/share/postgresql/ content despite the actually installed version
Solution
- rewrite the query using pg_extension