Browse Source

ap/postgresql: Upgraded to postgresql-12.5.

current-20200608
Damien Goutte-Gattat 2 months ago
parent
commit
60789b1842
5 changed files with 13 additions and 19 deletions
  1. +6
    -13
      ap/postgresql/README_UPGRADE.txt
  2. +0
    -1
      ap/postgresql/postgresql-11.8.tar.bz2.sha256
  3. +1
    -0
      ap/postgresql/postgresql-12.5.tar.bz2.sha256
  4. +3
    -2
      ap/postgresql/postgresql.SlackBuild
  5. +3
    -3
      ap/postgresql/rc.postgresql

+ 6
- 13
ap/postgresql/README_UPGRADE.txt View File

@ -1,17 +1,10 @@
*** UPGRADING FROM POSTGRESQL 11.* ***
*** UPGRADING FROM POSTGRESQL 11.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 10.x ***
It is not possible to simply install PostgreSQL 11.8 above an existing
PostgreSQL 10.x (or lower) server. The database files are not compatible.
It is not possible to simply install PostgreSQL 12.5 above an existing
PostgreSQL 11.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 10.x cluster, then stop the server:
your running PostgreSQL 11.x cluster, then stop the server:
pg_dumpall -U postgres > backup
/etc/rc.d/rc.postgresql stop
@ -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-11.8-i486-1GGD.txz
upgradepkg postgresql-12.5-i486-1GGD.txz
mv /etc/rc.d/rc.postgresql.new /etc/rc.d/rc.postgresql
/etc/rc.d/rc.postgresql init
@ -35,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/11/upgrading.html>.
<https://www.postgresql.org/docs/12/upgrading.html>.

+ 0
- 1
ap/postgresql/postgresql-11.8.tar.bz2.sha256 View File

@ -1 +0,0 @@
eaf2f4329ccc349c89e950761b81daf8c99bb8966abcab5665ccd6ee95c77ae2 postgresql-11.8.tar.bz2

+ 1
- 0
ap/postgresql/postgresql-12.5.tar.bz2.sha256 View File

@ -0,0 +1 @@
bd0d25341d9578b5473c9506300022de26370879581f5fddd243a886ce79ff95 postgresql-12.5.tar.bz2

+ 3
- 2
ap/postgresql/postgresql.SlackBuild View File

@ -27,7 +27,7 @@
# Source package infos
NAMESRC=${NAMESRC:-postgresql}
VERSION=${VERSION:-11.8}
VERSION=${VERSION:-12.5}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.bz2}
WGET=${WGET:-https://ftp.postgresql.org/pub/source/v$VERSION/postgresql-$VERSION.tar.bz2}
@ -84,6 +84,7 @@ cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
PYTHON=python3 \
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
./configure \
@ -122,7 +123,7 @@ mkdir -p $PKG/etc/pgsql $PKG/var/log/pgsql $PKG/var/lib/pgsql
# Install the documentation
install -m 644 COPYRIGHT INSTALL README doc/KNOWN_BUGS \
doc/bug.template $CWD/README_UPGRADE.txt $PKG/usr/doc/$NAME
$CWD/README_UPGRADE.txt $PKG/usr/doc/$NAME
(
cd doc/src/sgml
make install-man install-html DESTDIR=$PKG


+ 3
- 3
ap/postgresql/rc.postgresql View File

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


Loading…
Cancel
Save