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
38 lines
1.2 KiB
*** UPGRADING FROM POSTGRESQL 11.* ***
|
|
|
|
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.
|
|
|
|
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/rc.postgresql.new /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
|
|
<https://www.postgresql.org/docs/11/upgrading.html>.
|