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.

31 lines
1.0 KiB

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.6.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-10.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