ap/postgresql: Upgraded to postgresql-9.2.4.

slackware-14.2
Damien Goutte-Gattat 9 years ago
parent c4eaf3b25c
commit 6b354aa6b7
  1. 14
      ap/postgresql/README_UPGRADE.txt
  2. 1
      ap/postgresql/postgresql-9.1.3.tar.bz2.sha1
  3. 1
      ap/postgresql/postgresql-9.2.4.tar.bz2.sha1
  4. 4
      ap/postgresql/postgresql.SlackBuild
  5. 6
      ap/postgresql/rc.postgresql

@ -1,16 +1,16 @@
*** UPGRADING FROM POSTGRESQL 9.1.x ***
*** UPGRADING FROM POSTGRESQL 9.2.x ***
A dump/restore is not required. Just shutdown the server, upgrade the
package, and start the new server.
*** UPGRADING FROM POSTGRESQL 9.0.x OR LOWER ***
*** UPGRADING FROM POSTGRESQL 9.1.x OR LOWER ***
It is not possible to simply install PostgreSQL 9.1.3 above an existing
PostgreSQL 9.0.x (or lower) server. The database files are not compatible.
It is not possible to simply install PostgreSQL 9.2.4 above an existing
PostgreSQL 9.1.x (or lower) server. The database files are not compatible.
Before installing the new version, you must dump all the contents of
your running PostgreSQL 9.0.x cluster, then stop the server:
your running PostgreSQL 9.1.x cluster, then stop the server:
pg_dumpall -U postgres > backup
/etc/rc.d/rc.postgresql stop
@ -23,7 +23,7 @@ configuration files within, if you have modified them):
Upgrade the postgresql package, and initialize the data directory for
the upgraded server:
upgradepkg postgresql-9.1.3-i486-1GGD.txz
upgradepkg postgresql-9.2.4-i486-1GGD.txz
mv /etc/rc.d/rc.postgresql.new /etc/rc.d/rc.postgresql
/etc/rc.d/rc.postgresql init
@ -34,4 +34,4 @@ Start the server and import your data back:
For more details, please read the appropriate section of the PostgreSQL
documentation (17.6, ``Upgrading a PostgreSQL Cluster''), available at
<http://www.postgresql.org/docs/9.1/static/upgrading.html>.
<http://www.postgresql.org/docs/9.2/static/upgrading.html>.

@ -1 +0,0 @@
1cf3044415df807c08bb8ad8e40e24e8d375cf34 postgresql-9.1.3.tar.bz2

@ -0,0 +1 @@
75b53c884cb10ed9404747b51677358f12082152 postgresql-9.2.4.tar.bz2

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2008,2009,2010,2011,2012 Damien Goutte-Gattat
# Copyright (C) 2008,2009,2010,2011,2012,2013 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -27,7 +27,7 @@
# Source package infos
NAMESRC=${NAMESRC:-postgresql}
VERSION=${VERSION:-9.1.3}
VERSION=${VERSION:-9.2.4}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.bz2}
WGET=${WGET:-ftp://ftp4.fr.postgresql.org/pub/mirrors/postgresql/source/v$VERSION/$ARCHIVE}

@ -12,11 +12,11 @@ pgsql_init() {
elif [ ! -f $PGDATA/PG_VERSION ]; then
echo "$PGDATA is not a PostgreSQL cluster directory!"
exit 1
elif [ `cat $PGDATA/PG_VERSION` != '9.1' ]; then
elif [ `cat $PGDATA/PG_VERSION` != '9.2' ]; then
echo "$PGDATA is the data directory of an old PostgreSQL server."
echo "PostgreSQL 9.1 can not directly use these data. If you are"
echo "PostgreSQL 9.2 can not directly use these data. If you are"
echo "migrating from a previous major version of PostgreSQL, please"
echo "read the file /usr/doc/postgresql-9.1.3/README_UPGRADE.txt."
echo "read the file /usr/doc/postgresql-9.2.4/README_UPGRADE.txt."
exit 1
fi
}

Loading…
Cancel
Save