https://bugzilla.wikimedia.org/show_bug.cgi?id=16937


Karun Dambiec <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|1.14-svn                    |unspecified




--- Comment #28 from Karun Dambiec <[email protected]>  2009-05-10 03:12:14 UTC 
---
tsnowman proposes in the forum page
(http://www.mwusers.com/forums/showthread.php?t=10799) referred to in Bug 18742
proposes that the client and server versions is checked. 
This approach appears to resolve the issue on Windows. I am unsure whether that
is the best approach to correct the problem, as we may have a 8.1 client, and a
7.0 server.
        /**
         * @return string Version information from the database
         */
        function getServerVersion() {
                $versionInfo = pg_version( $this->mConn );
                if ( isset( $versionInfo['server'] ) ) {
                        $this->numeric_version = $versionInfo['server'];
                } else {
                        // There's no way to identify the precise version
before 7.4, but 
                        // it doesn't matter anyway since we're just going to
give an error.
                        $this->numeric_version = '7.3 or earlier';
                }
                return $this->numeric_version;
        }

With regards to protocol used, this may be not as much of an issue, compared to
whether the database and MediaWiki uses any PostGreSQL features that are only
available in a specific version or later. From
http://au.php.net/manual/en/pgsql.requirements.php it appears that specific
functions require 8.0 or later. So if we are not using any functions that
require 8.0 or late, it may be possible to just not check the postgresql
version. 


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to