Closed alexeyklyukin closed 4 years ago
Avoid parsing version() output with regexps, as it breaks for non-released versions (i.e. devel or beta). Get the value from the server_version_num instead. Remove the version fetch from t1_tuning.sql, as it seems to serve no purpose there.
cool, thanks @alexeyklyukin !
I've learned about current_setting('server_version_num') only after I wrote this code. Thanks for the change.
current_setting('server_version_num')
Avoid parsing version() output with regexps, as it breaks for non-released versions (i.e. devel or beta). Get the value from the server_version_num instead. Remove the version fetch from t1_tuning.sql, as it seems to serve no purpose there.