check what version of postgresql is installed code example Example: postgres version command SELECT version();