Skip to content
Browse files

Support 8.0/8.1 when upgrading slony via slonik's upgrade functions

  • Loading branch information...
1 parent 54fe651 commit d7025be27da749f2df2a9084b5e8c6e6eeb90190 @dBitech dBitech committed Apr 28, 2005
Showing with 21 additions and 2 deletions.
  1. +21 −2 src/slonik/slonik.c
View
23 src/slonik/slonik.c
@@ -6,7 +6,7 @@
* Copyright (c) 2003-2004, PostgreSQL Global Development Group
* Author: Jan Wieck, Afilias USA INC.
*
- * $Id: slonik.c,v 1.40 2005-01-26 19:51:22 darcyb Exp $
+ * $Id: slonik.c,v 1.41 2005-04-28 17:38:30 darcyb Exp $
*-------------------------------------------------------------------------
*/
@@ -1804,7 +1804,9 @@ load_slony_base(SlonikStmt * stmt, int no_id)
case 0:
use_minor = 4;
break;
-
+ case 1:
+ use_minor = 4;
+ break;
default:
use_minor = 4;
printf("%s:%d: Possible unsupported PostgreSQL "
@@ -1895,6 +1897,23 @@ load_slony_functions(SlonikStmt * stmt, int no_id)
adminfo->version_major, adminfo->version_minor);
}
break;
+ case 8:
+ use_major = 7;
+ switch (adminfo->version_minor)
+ {
+ case 0:
+ use_minor = 4;
+ break;
+ case 1:
+ use_minor = 4;
+ break;
+ default:
+ printf("%s:%d: Possible unsupported PostgreSQL "
+ "version %d.%d\n",
+ stmt->stmt_filename, stmt->stmt_lno,
+ adminfo->version_major, adminfo->version_minor);
+ }
+ break;
default:
printf("%s:%d: unsupported PostgreSQL "

0 comments on commit d7025be

Please sign in to comment.
Something went wrong with that request. Please try again.