[Lunar-commits] <moonbase> postgresql: version bumped to 9.0.0.

Florin Braescu florin at lunar-linux.org
Mon Sep 20 09:06:19 CEST 2010


commit d6951b487079f434118baba198e1da496e2f45a1
Author: Florin Braescu <florin at lunar-linux.org>
Date:   Mon Sep 20 10:06:19 2010 +0300

    postgresql: version bumped to 9.0.0.
    
    The update process have to be preceeded by a dump and after the install
    by a restore of the database as the format was changed!
    Version 9.0 has an unprecedented number of new major features, and over
    200 enhancements, improvements, new commands, new functions, and other
    changes.
    More informations at:
         http://developer.postgresql.org/pgdocs/postgres/release-9-0.html
---
 sql/postgresql/BUILD     |    3 +++
 sql/postgresql/CONFIGURE |    5 ++---
 sql/postgresql/DETAILS   |    6 +++---
 3 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/sql/postgresql/BUILD b/sql/postgresql/BUILD
index 96a7058..8c355ce 100644
--- a/sql/postgresql/BUILD
+++ b/sql/postgresql/BUILD
@@ -1,5 +1,8 @@
 (
 
+  message " ${PROBLEM_COLOR}Warning! ${DEFAULT_COLOR}This module needs a dump/restore for the databases in the old 8.x <= version format."
+  sleep 5
+
   if in_depends $MODULE timezone-data; then
     OPTS="$OPTS --with-system-tzdata=/usr/share/zoneinfo"
   fi &&
diff --git a/sql/postgresql/CONFIGURE b/sql/postgresql/CONFIGURE
index 3b52bd8..1ce8415 100644
--- a/sql/postgresql/CONFIGURE
+++ b/sql/postgresql/CONFIGURE
@@ -1,10 +1,9 @@
-
  if [ -f /var/lib/pgsql/data/PG_VERSION ]
     then
     set `cat /var/lib/pgsql/data/PG_VERSION | tr . ' '`
-    if [[ $1 -le 8 ]] && [[ $2 -lt 3 ]];
+    if [[ $1 -le 9 ]] && [[ $2 -gt 0 ]];
        then
-       printf "${PROBLEM_COLOR}A pre 8.3 version of the database was found.\nYou need to upgrade the data format to 8.3.\nRefer to the INSTALL file located in the tarball\nfor the upgrade procedure.\nThe install will not continue.""${DEFAULT_COLOR}\n"
+       printf "${PROBLEM_COLOR}A pre 9.0 version of the database was found.\nYou need to upgrade the data format to 9.0.\nRefer to the INSTALL file located in the tarball\nfor the upgrade procedure.\nThe install will not continue.""${DEFAULT_COLOR}\n"
       exit 1
     fi
  fi
diff --git a/sql/postgresql/DETAILS b/sql/postgresql/DETAILS
index aef055a..903dd30 100644
--- a/sql/postgresql/DETAILS
+++ b/sql/postgresql/DETAILS
@@ -1,13 +1,13 @@
           MODULE=postgresql
-         VERSION=8.4.4
+         VERSION=9.0.0
           SOURCE=$MODULE-$VERSION.tar.bz2
    SOURCE_URL[0]=ftp://ftp.ie.postgresql.org/mirrors/ftp.postgresql.org/pub/source/v${VERSION}
    SOURCE_URL[1]=ftp://ftp.nl.postgresql.org/pub/mirrors/postgresql/source/v${VERSION}
    SOURCE_URL[2]=ftp://ftp.us.postgresql.org/pub/mirrors/postgresql/source/v${VERSION}
-      SOURCE_VFY=sha1:02592977a601976f8bae7bc3a5c69710d4d0344d
+      SOURCE_VFY=sha1:ed2f83cd1a83c40dcbe0ba19ee3ba2a7faa0de3d
         WEB_SITE=http://www.postgresql.org
          ENTERED=20011113
-         UPDATED=20100516
+         UPDATED=20100920
            SHORT="A sophisticated Object-Relational DBMS"
 
 cat << EOF


More information about the Lunar-commits mailing list