]> git.openstreetmap.org Git - nominatim.git/commitdiff
extensions where introduced in postgresql in 9.1, not in 9.0
authorSarah Hoffmann <lonvia@denofr.de>
Sat, 21 Jan 2012 12:09:43 +0000 (12:09 +0000)
committerSarah Hoffmann <lonvia@denofr.de>
Sat, 21 Jan 2012 12:09:43 +0000 (12:09 +0000)
utils/setup.php

index 842d30e2fefc3776c6a436988f1a25f1c5dabc9d..b0eecfc8ca3998b3678a5ff7f56cb04f6a4467fd 100755 (executable)
@@ -82,7 +82,7 @@
                $oDB =& getDB();
                passthru('createlang plpgsql '.$aDSNInfo['database']);
         $pgver = (float) CONST_Postgresql_Version;
                $oDB =& getDB();
                passthru('createlang plpgsql '.$aDSNInfo['database']);
         $pgver = (float) CONST_Postgresql_Version;
-               if ($pgver < 9.0) {
+               if ($pgver < 9.1) {
                        pgsqlRunScriptFile(CONST_Path_Postgresql_Contrib.'/hstore.sql');
                } else {
                        pgsqlRunScript('CREATE EXTENSION hstore');
                        pgsqlRunScriptFile(CONST_Path_Postgresql_Contrib.'/hstore.sql');
                } else {
                        pgsqlRunScript('CREATE EXTENSION hstore');