|
|
|
@ -1,17 +1,10 @@
|
|
|
|
|
*** UPGRADING FROM POSTGRESQL 9.4.1 *** |
|
|
|
|
*** UPGRADING FROM POSTGRESQL 9.4.x *** |
|
|
|
|
|
|
|
|
|
A dump/restore procedure is not needed when upgrading from PostgreSQL |
|
|
|
|
9.4.1. Just shutdown the server, upgrade the package, and restart the |
|
|
|
|
server. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
*** UPGRADING FROM POSTGRESQL 9.2.x *** |
|
|
|
|
|
|
|
|
|
It is not possible to simply install PostgreSQL 9.4.4 above an existing |
|
|
|
|
PostgreSQL 9.2.x (or lower) server. The database files are not compatible. |
|
|
|
|
It is not possible to simply install PostgreSQL 9.5.3 above an existing |
|
|
|
|
PostgreSQL 9.4.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.2.x cluster, then stop the server: |
|
|
|
|
your running PostgreSQL 9.4.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-9.4.4-i486-1GGD.txz |
|
|
|
|
upgradepkg postgresql-9.5.3-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 (17.6, ``Upgrading a PostgreSQL Cluster''), available at |
|
|
|
|
<http://www.postgresql.org/docs/9.4/static/upgrading.html>. |
|
|
|
|
<http://www.postgresql.org/docs/9.5/static/upgrading.html>. |
|
|
|
|