postgres: rename dbms postgres-9.1 to postgres-9
authorClinton Ebadi <clinton@unknownlamer.org>
Sun, 14 Oct 2018 22:24:06 +0000 (18:24 -0400)
committerClinton Ebadi <clinton@unknownlamer.org>
Sun, 14 Oct 2018 22:24:06 +0000 (18:24 -0400)
This will actually be postgres 9.6 now, data is automatically being
migrated as there are no major incompatibilities (unlike 8.1 -> 9.1
which had a wire protocol break).

configDefault/postgres.cfg
configDefault/postgres.csg
src/plugins/postgres.sml

index 4f0d3e0..58b4254 100644 (file)
@@ -5,6 +5,6 @@ val createdb = ConfigCore.sudo ^ " " ^ ConfigCore.installPrefix ^ "/sbin/domtool
 val dropdb = ConfigCore.sudo ^ " " ^ ConfigCore.installPrefix ^ "/sbin/domtool-postgres dropdb"
 
 val postgres81port = "5432";
 val dropdb = ConfigCore.sudo ^ " " ^ ConfigCore.installPrefix ^ "/sbin/domtool-postgres dropdb"
 
 val postgres81port = "5432";
-val postgres91port = "5433"
+val postgres9port = "5433"
 
 end
 
 end
index 12c752a..e6b7e1d 100644 (file)
@@ -5,5 +5,5 @@ val createdb : string
 val dropdb : string
 
 val postgres81port : string
 val dropdb : string
 
 val postgres81port : string
-val postgres91port : string
+val postgres9port : string
 end
 end
index 6bc3505..fda5801 100644 (file)
@@ -37,18 +37,11 @@ fun dropdb port {user, dbname} =
     Option.map (fn s => "Error executing DROP DATABASE script:\n" ^ s)
               (Slave.shellOutput [Config.Postgres.dropdb, " ", port, " ", user, " ", dbname])
 
     Option.map (fn s => "Error executing DROP DATABASE script:\n" ^ s)
               (Slave.shellOutput [Config.Postgres.dropdb, " ", port, " ", user, " ", dbname])
 
-val _ = Dbms.register ("postgres", {getpass = NONE,
-                                   adduser = adduser Config.Postgres.postgres81port,
-                                   passwd = passwd,
-                                   createdb = createdb Config.Postgres.postgres81port,
-                                   dropdb = dropdb Config.Postgres.postgres81port,
-                                   grant = fn _ => SOME "You don't need to use GRANT for Postgres."})
-
-val _ = Dbms.register ("postgres-9.1", {getpass = NONE,
-                                       adduser = adduser Config.Postgres.postgres91port,
+val _ = Dbms.register ("postgres-9", {getpass = NONE,
+                                       adduser = adduser Config.Postgres.postgres9port,
                                        passwd = passwd,
                                        passwd = passwd,
-                                       createdb = createdb Config.Postgres.postgres91port,
-                                       dropdb = dropdb Config.Postgres.postgres91port,
+                                       createdb = createdb Config.Postgres.postgres9port,
+                                       dropdb = dropdb Config.Postgres.postgres9port,
                                        grant = fn _ => SOME "You don't need to use GRANT for Postgres."})
 
 end
                                        grant = fn _ => SOME "You don't need to use GRANT for Postgres."})
 
 end