Browse Source

ap/postgresql: Upgraded to postgresql-10.8.

slackware-14.2
Damien Goutte-Gattat 3 years ago
parent
commit
4e72adece9
  1. 12
      ap/postgresql/README_UPGRADE.txt
  2. 1
      ap/postgresql/php-5.6.37.tar.xz.sha256
  3. 1
      ap/postgresql/php-5.6.40.tar.xz.sha256
  4. 1
      ap/postgresql/postgresql-10.8.tar.bz2.sha256
  5. 1
      ap/postgresql/postgresql-9.6.9.tar.bz2.sha256
  6. 6
      ap/postgresql/postgresql.SlackBuild
  7. 6
      ap/postgresql/rc.postgresql

12
ap/postgresql/README_UPGRADE.txt

@ -1,10 +1,10 @@
*** UPGRADING FROM POSTGRESQL 9.5.x ***
*** UPGRADING FROM POSTGRESQL 9.6.x ***
It is not possible to simply install PostgreSQL 9.6.6 above an existing
PostgreSQL 9.5.x (or lower) server. The database files are not compatible.
It is not possible to simply install PostgreSQL 10.8 above an existing
PostgreSQL 9.6.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.5.x cluster, then stop the server:
your running PostgreSQL 9.6.x cluster, then stop the server:
pg_dumpall -U postgres > backup
/etc/rc.d/rc.postgresql stop
@ -17,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.6.6-i486-1GGD.txz
upgradepkg postgresql-10.8-i486-1GGD.txz
mv /etc/rc.d/rc.postgresql.new /etc/rc.d/rc.postgresql
/etc/rc.d/rc.postgresql init
@ -28,4 +28,4 @@ Start the server and import your data back:
For more details, please read the appropriate section of the PostgreSQL
documentation (18.6, ``Upgrading a PostgreSQL Cluster''), available at
<http://www.postgresql.org/docs/9.6/static/upgrading.html>.
<https://www.postgresql.org/docs/10/upgrading.html>.

1
ap/postgresql/php-5.6.37.tar.xz.sha256

@ -1 +0,0 @@
5000d82610f9134aaedef28854ec3591f68dedf26a17b8935727dac2843bd256 php-5.6.37.tar.xz

1
ap/postgresql/php-5.6.40.tar.xz.sha256

@ -0,0 +1 @@
1369a51eee3995d7fbd1c5342e5cc917760e276d561595b6052b21ace2656d1c php-5.6.40.tar.xz

1
ap/postgresql/postgresql-10.8.tar.bz2.sha256

@ -0,0 +1 @@
b198c2aadf1d68308127a0f5b51dbe798958ffe60dd999134f6495c489afcd5d postgresql-10.8.tar.bz2

1
ap/postgresql/postgresql-9.6.9.tar.bz2.sha256

@ -1 +0,0 @@
b97952e3af02dc1e446f9c4188ff53021cc0eed7ed96f254ae6daf968c443e2e postgresql-9.6.9.tar.bz2

6
ap/postgresql/postgresql.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2008-2013,2015-2018 Damien Goutte-Gattat
# Copyright (C) 2008-2013,2015-2019 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.6.9}
VERSION=${VERSION:-10.8}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.bz2}
WGET=${WGET:-https://ftp.postgresql.org/pub/source/v$VERSION/postgresql-$VERSION.tar.bz2}
@ -134,7 +134,7 @@ find $PKG/usr/man -type f -exec gzip -9 {} \;
# Install PHP extension
if type -p phpize ; then
# Get latest PHP included with Slackware-14.2
PHP_ARCHIVE=php-5.6.37.tar.xz
PHP_ARCHIVE=php-5.6.40.tar.xz
(
cd $CWD
if [ ! -r $PHP_ARCHIVE ]; then

6
ap/postgresql/rc.postgresql

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

Loading…
Cancel
Save