Browse Source

ap/postgresql: Upgraded to postgresql-11.6.

current-20191101
Damien Goutte-Gattat 2 years ago
parent
commit
4e58d59c48
  1. 12
      ap/postgresql/README_UPGRADE.txt
  2. 1
      ap/postgresql/postgresql-10.8.tar.bz2.sha256
  3. 1
      ap/postgresql/postgresql-11.6.tar.bz2.sha256
  4. 4
      ap/postgresql/postgresql.SlackBuild
  5. 4
      ap/postgresql/rc.postgresql

12
ap/postgresql/README_UPGRADE.txt

@ -1,10 +1,10 @@
*** UPGRADING FROM POSTGRESQL 9.6.x ***
*** UPGRADING FROM POSTGRESQL 10.x ***
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.
It is not possible to simply install PostgreSQL 11.6 above an existing
PostgreSQL 10.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.6.x cluster, then stop the server:
your running PostgreSQL 10.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-10.8-i486-1GGD.txz
upgradepkg postgresql-11.6-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
<https://www.postgresql.org/docs/10/upgrading.html>.
<https://www.postgresql.org/docs/11/upgrading.html>.

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

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

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

@ -0,0 +1 @@
49924f7ff92965fdb20c86e0696f2dc9f8553e1563124ead7beedf8910c13170 postgresql-11.6.tar.bz2

4
ap/postgresql/postgresql.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2008-2013,2015-2019 Damien Goutte-Gattat
# Copyright (C) 2008-2013,2015-2020 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:-10.8}
VERSION=${VERSION:-11.6}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.bz2}
WGET=${WGET:-https://ftp.postgresql.org/pub/source/v$VERSION/postgresql-$VERSION.tar.bz2}

4
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` != '10' ]; then
elif [ `cat $PGDATA/PG_VERSION` != '11' ]; then
echo "$PGDATA is the data directory of an old PostgreSQL server."
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-10.8/README_UPGRADE.txt."
echo "read the file /usr/doc/postgresql-11.6/README_UPGRADE.txt."
exit 1
fi
}

Loading…
Cancel
Save