MyBB Community Forums

Full Version: 1.4.8 minor issue: postgres version display on 'dashboard'
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
In many situations, the postgres SERVER version is not the same as the CLIENT version. in particular, on RHEL/CentOS type systems, if you've upgraded to a later postgres with the yum postgres repository, and used the 'compat' pg libs to ensure compatibility with RHEL/CentOS supplied apache+php, then you have pgsql client 8.1.11 with pg server 8.3.7, or whatever.

in inc/db_pgsql.php, near line 954, change from...
                       $this->version = $version['client'];


to
                       $this->version = $version['server'];

to display the correct SERVER version (which is more important!).

again, this is a minor nit (but when dashboard said I was running postgres 8.1.11, I had to chase it down cuz it was driving me nuts!)