|
@@ -336,7 +336,11 @@ AutoReqProv: no
|
|
|
echo "so we strongly recommend that you backup your existing database"
|
|
echo "so we strongly recommend that you backup your existing database"
|
|
|
echo "($RPM_INSTALL_PREFIX/var/postgresql/db/) first by running:"
|
|
echo "($RPM_INSTALL_PREFIX/var/postgresql/db/) first by running:"
|
|
|
echo " \$ $RPM_INSTALL_PREFIX/bin/pg_migrate dump"
|
|
echo " \$ $RPM_INSTALL_PREFIX/bin/pg_migrate dump"
|
|
|
- echo "Alternatively, if you want force this package to be installed without"
|
|
|
|
|
|
|
+ echo "If this fails for some reasons, try to dump your data manually:"
|
|
|
|
|
+ echo " \$ $RPM_INSTALL_PREFIX/bin/pg_dumpall -U postgresql -o | \\ "
|
|
|
|
|
+ echo " $RPM_INSTALL_PREFIX/lib/openpkg/bzip2 -9 \\ "
|
|
|
|
|
+ echo " >$RPM_INSTALL_PREFIX/var/postgresql/db.dump.sql.bz2"
|
|
|
|
|
+ echo "Alternatively, if you want to force this package to be installed without"
|
|
|
echo "performing a database dump, run the following command before upgrading:"
|
|
echo "performing a database dump, run the following command before upgrading:"
|
|
|
echo " \$ PG_MIGRATE=ignore; export PG_MIGRATE"
|
|
echo " \$ PG_MIGRATE=ignore; export PG_MIGRATE"
|
|
|
) | %{l_rpmtool} msg -b -t error
|
|
) | %{l_rpmtool} msg -b -t error
|
|
@@ -414,6 +418,10 @@ AutoReqProv: no
|
|
|
echo "so we strongly recommend you to recreate the existing database under"
|
|
echo "so we strongly recommend you to recreate the existing database under"
|
|
|
echo "$RPM_INSTALL_PREFIX/var/postgresql/db/ by running the following command:"
|
|
echo "$RPM_INSTALL_PREFIX/var/postgresql/db/ by running the following command:"
|
|
|
echo " \$ $RPM_INSTALL_PREFIX/bin/pg_dump restore"
|
|
echo " \$ $RPM_INSTALL_PREFIX/bin/pg_dump restore"
|
|
|
|
|
+ echo "If this fails for some reasons, try to restore your data manually:"
|
|
|
|
|
+ echo " \$ $RPM_INSTALL_PREFIX/lib/openpkg/bzip2 -d -c \\ "
|
|
|
|
|
+ echo " $RPM_INSTALL_PREFIX/var/postgresql/db.dump.sql.bz2 | \\ "
|
|
|
|
|
+ echo " $RPM_INSTALL_PREFIX/bin/psql -U postgresql -d template1"
|
|
|
) | %{l_rpmtool} msg -b -t warn
|
|
) | %{l_rpmtool} msg -b -t warn
|
|
|
fi
|
|
fi
|
|
|
fi
|
|
fi
|