testdb=# SELECT current_setting('server_version_num');
current_setting
-----------------
100010
(1 row)
testdb=# select version();
-------
PostgreSQL 10.10 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 8.3.1 20190507 (Red Hat 8.3.1-4),
64-bit
(1 row)