Add in code to recognize PostgreSQL 9.2 and accept it as a
authorChristopher Browne <cbbrowne@ca.afilias.info>
Fri, 30 Nov 2012 22:18:10 +0000 (17:18 -0500)
committerChristopher Browne <cbbrowne@ca.afilias.info>
Fri, 30 Nov 2012 22:23:42 +0000 (17:23 -0500)
supported version, rather than warning that we're not sure

Conflicts:
RELEASE
src/slonik/slonik.c

src/slonik/slonik.c

index 108519b7c73bb57e3795f2082f34171399668adb..1e40d872ef39bae01bc501a62c0c4e174811dd6b 100644 (file)
@@ -2003,15 +2003,15 @@ load_slony_base(SlonikStmt * stmt, int no_id)
                use_major = 8;
                use_minor = 4;
        }
-       else if ((adminfo->pg_version >= 90000) && (adminfo->pg_version < 90200))       /* 9.x */
+       else if ((adminfo->pg_version >= 90000) && (adminfo->pg_version < 90300)) /* 9.x */
        {
                /**
-                * 9.0 and 9.1 are so far just like 8.4
+                * 9.0 and 9.1 and 9.2 are so far just like 8.4
                 **/
                use_major = 8;
                use_minor = 4;
        }
-       else    /* above 9.1 ??? */
+       else    /* above 9.2 ??? */
        {
                use_major = 8;
                use_minor = 4;
@@ -2092,10 +2092,10 @@ load_slony_functions(SlonikStmt * stmt, int no_id)
                use_major = 8;
                use_minor = 4;
        }
-       else if ((adminfo->pg_version >= 90000) && (adminfo->pg_version < 90200))       /* 9.0, 9.1 */
+       else if ((adminfo->pg_version >= 90000) && (adminfo->pg_version < 90300)) /* 9.0, 9.1, 9.2 */
        {
                /**
-                * 9.0 and 9.1 are so far just like 8.4
+                * 9.0 and 9.1 and 9.2 are so far just like 8.4
                 */
                use_major = 8;
                use_minor = 4;