ap/postgresql: Upgraded to postgresql-9.6.2.

slackware-14.2
Damien Goutte-Gattat 5 years ago
parent 85caf3f308
commit 53eb99d099
  1. 15
      ap/postgresql/README_UPGRADE.txt
  2. 1
      ap/postgresql/postgresql-9.4.11.tar.bz2.sha256
  3. 1
      ap/postgresql/postgresql-9.6.2.tar.bz2.sha256
  4. 5
      ap/postgresql/postgresql.SlackBuild
  5. 6
      ap/postgresql/rc.postgresql

@ -1,14 +1,7 @@
*** UPGRADING FROM POSTGRESQL 9.4.x ***
A dump/restore procedure is not needed when upgrading from PostgreSQL
9.4.x. Just shutdown the server, upgrade the package, and restart the
server.
*** UPGRADING FROM POSTGRESQL 9.3.x ***
It is not possible to simply install PostgreSQL 9.4.8 above an existing
PostgreSQL 9.3.x (or lower) server. The database files are not compatible.
PostgreSQL 9.4.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.4.x cluster, then stop the server:
@ -24,7 +17,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.4.8-i486-1GGD.txz
upgradepkg postgresql-9.6.2-i486-1GGD.txz
mv /etc/rc.d/rc.postgresql.new /etc/rc.d/rc.postgresql
/etc/rc.d/rc.postgresql init
@ -34,5 +27,5 @@ Start the server and import your data back:
psql -U postgres -f backup postgres
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.4/static/upgrading.html>.
documentation (18.6, ``Upgrading a PostgreSQL Cluster''), available at
<http://www.postgresql.org/docs/9.6/static/upgrading.html>.

@ -1 +0,0 @@
e3eb51d045c180b03d2de1f0c3af9356e10be49448e966ca01dfc2c6d1cc9d23 postgresql-9.4.11.tar.bz2

@ -0,0 +1 @@
0187b5184be1c09034e74e44761505e52357248451b0c854dddec6c231fe50c9 postgresql-9.6.2.tar.bz2

@ -27,7 +27,7 @@
# Source package infos
NAMESRC=${NAMESRC:-postgresql}
VERSION=${VERSION:-9.4.11}
VERSION=${VERSION:-9.6.2}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.bz2}
WGET=${WGET:-https://ftp.postgresql.org/pub/source/v$VERSION/postgresql-$VERSION.tar.bz2}
@ -122,8 +122,7 @@ mkdir -p $PKG/etc/pgsql $PKG/var/log/pgsql
# Install the documentation
install -m 644 COPYRIGHT HISTORY INSTALL README doc/KNOWN_BUGS \
doc/MISSING_FEATURES doc/TODO doc/bug.template $CWD/README_UPGRADE.txt \
$PKG/usr/doc/$NAME
doc/bug.template $CWD/README_UPGRADE.txt $PKG/usr/doc/$NAME
(
cd doc/src/sgml
make install-man install-html DESTDIR=$PKG

@ -20,11 +20,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.4' ]; then
elif [ `cat $PGDATA/PG_VERSION` != '9.6' ]; then
echo "$PGDATA is the data directory of an old PostgreSQL server."
echo "PostgreSQL 9.4 can not directly use these data. If you are"
echo "PostgreSQL 9.6 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.4.8/README_UPGRADE.txt."
echo "read the file /usr/doc/postgresql-9.6.2/README_UPGRADE.txt."
exit 1
fi
}

Loading…
Cancel
Save