version () → textReturns a string describing the PostgreSQL server's version. You can also get this information from server_version, or for a machine-readable version use server_version_num. Software developers should use
server_version_num (available since 8.2) or PQserverVersion instead of parsing the text version.