check postgres version using version code example Example: postgres version command SELECT version();