Each version of JChem PostgreSQL Cartridge (JPC) is only compatible with one version of PostgreSQL database requiring parallel upgrade of the database and of JPC in some cases.
The steps of this upgrade procedure are described in this documentation.
See the compatibility matrix here:
JPC version | PosgreSQL version |
---|---|
1.4 - 2.0 | 9.4 |
2.1 - 2.10 | 9.5 |
3.0 - 4.4 | 10 |
5.0 - 21.18 | 12.0 - 12.8 |
21.19 - | 12 |
22.22 - | 12, 13, 14, 15 |
PostgreSQL <old_pg> is supported by JChem PostgreSQL Cartridge (JPC) version <old_jpc>
PostgreSQL <new_pg> is supported by JPC version <new_jpc>.
Consequently, upgrading to PostgreSQL <new_pg> requires upgrading JPC to JPC <new_jpc> as well, and also - in same cases - upgrading JPC to <new_jpc> requires upgrading PostgreSQL database to <new_pg>.
Remove JPC <old_jpc> (jchem-psql). E.g.:
sudo service postgresql stop
sudo service jchem-psql stop
sudo apt-get remove jchem-psql
Remove PostgreSQL <old_pg>. E.g. following https://wiki.debian.org/PostgreSql.
Install PostgreSQL <new_pg>. E.g. following https://wiki.debian.org/PostgreSql.
Install new cartridge JPC <new_jpc>. Follow steps described here.
Dump the <old_pg> databases. Follow the Postgres pg_dump or pg_dumpall documentation.
Remove JPC <old_jpc> (jchem-psql). E.g.:
sudo service postgresql stop
sudo service jchem-psql stop
sudo apt-get remove jchem-psql
Remove PostgreSQL <old_pg>. E.g. following https://wiki.debian.org/PostgreSql.
Install PostgreSQL <new_pg>. E.g. following https://wiki.debian.org/PostgreSql.
Install new cartridge JPC <new_jpc>. Follow steps described here.
Make sure that the new postgres and cartridge service are both started.
sudo service jchem-psql start
sudo service postgresql start
Restore databases in PostgreSQL <new_pg>. Follow the Postgres pg_dump, pg_dumpall or pg_restore documentation how to restore the dump file(s).