Some SlackBuild scripts for Slackware.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.2 KiB

A dump/restore procedure is not needed when upgrading from PostgreSQL
9.4.x. Just shutdown the server, upgrade the package, and restart the
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.
Before installing the new version, you must dump all the contents of
your running PostgreSQL 10.x cluster, then stop the server:
pg_dumpall -U postgres > backup
/etc/rc.d/rc.postgresql stop
Wipe out the data directory (you may want to keep a copy of the
configuration files within, if you have modified them):
rm -rf /var/lib/pgsql
Upgrade the postgresql package, and initialize the data directory for
the upgraded server:
upgradepkg postgresql-11.8-i486-1GGD.txz
mv /etc/rc.d/ /etc/rc.d/rc.postgresql
/etc/rc.d/rc.postgresql init
Start the server and import your data back:
/etc/rc.d/rc.postgresql start
psql -U postgres -f backup postgres
For more details, please read the appropriate section of the PostgreSQL
documentation (18.6, ``Upgrading a PostgreSQL Cluster''), available at