]> git.pld-linux.org Git - packages/postgresql.git/commitdiff
- always print warnings (if databases are for incompatible postgresql versions,
authorwrobell <wrobell@pld-linux.org>
Mon, 25 Nov 2002 17:28:58 +0000 (17:28 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  then postgresql will not start, at all)

Changed files:
    postgresql.spec -> 1.175

postgresql.spec

index 5b5ca7a0f988a90946fb81cfc6fd10ddacf841b2..9fc3f1fb85a4779f7e6115d49ac47e31982d9fdf 100644 (file)
@@ -789,27 +789,14 @@ rm -rf $RPM_BUILD_ROOT
 rm -f /tmp/tmp_perl_info
 
 %pre
-if [ -f /etc/sysconfig/postgresql ]; then
-    POSTGRES_DATA_DIR=/var/lib/pgsql
-    . /etc/sysconfig/postgresql
-    if [ -f $POSTGRES_DATA_DIR/PG_VERSION ]; then
-       if [ `cat $POSTGRES_DATA_DIR/PG_VERSION` != '7.3' ]; then
-           echo "Database(s) in older, incompatible format exist in $POSTGRES_DATA_DIR."
-           echo "Dump them and clean $POSTGRES_DATA_DIR, then upgrade postgresql and"
-           echo "restore database(s)."
-        echo
-        echo "Warning for upgrade from version *before* 7.2."
-        echo "Please note, that postgresql module path changed from"
-        echo "/usr/lib/pgsql/module to /usr/lib/postgresql. Change the path"
-        echo "in dump file before restore."
-        echo
-        echo "Reading following webpage is encouraged:"
-        echo "http://www.ca.postgresql.org/docs/momjian/upgrade_tips_7.3."
-
-           exit 1
-       fi
-    fi
-fi
+echo "Warning for upgrade from version *before* 7.2."
+echo "Please note, that postgresql module path changed from"
+echo "/usr/lib/pgsql/module to /usr/lib/postgresql. Change the path"
+echo "in dump file before restore."
+echo
+echo "Warning for upgrade from version *before* 7.3."
+echo "Reading following webpage is encouraged:"
+echo "http://www.ca.postgresql.org/docs/momjian/upgrade_tips_7.3."
 
 getgid postgres >/dev/null 2>&1 || /usr/sbin/groupadd -g 88 -r -f postgres
 if id postgres >/dev/null 2>&1 ; then
This page took 0.07697 seconds and 4 git commands to generate.