Upgrade of PostgreSQL database together with JChem PostgreSQL Cartridge¶
The older versions of JChem PostgreSQL Cartridge (JPC) are only compatible with one version of PostgreSQL database requiring parallel upgrade of the database and of JPC in some cases. The newer ones are already compatible with more database versions.
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 |
| 24.3.1 - | 12, 13, 14, 15, 16 |
Assumptions¶
PostgreSQL
PostgreSQL
Consequently, upgrading to PostgreSQL
Upgrade without keeping existing molecule type data¶
-
Remove JPC
(jchem-psql). E.g.: -
Remove PostgreSQL
. E.g. following https://wiki.debian.org/PostgreSql. -
Install PostgreSQL
. E.g. following https://wiki.debian.org/PostgreSql. -
Install new cartridge JPC
. Follow steps described here.
Upgrade with keeping existing molecule type data¶
-
Dump the
databases. Follow the Postgres pg_dump or pg_dumpall documentation. -
Remove JPC
(jchem-psql). E.g.: -
Remove PostgreSQL
. E.g. following https://wiki.debian.org/PostgreSql. -
Install PostgreSQL
. E.g. following https://wiki.debian.org/PostgreSql. -
Install new cartridge JPC
. Follow steps described here. -
Make sure that the new postgres and cartridge service are both started.
-
Restore databases in PostgreSQL
. Follow the Postgres pg_dump, pg_dumpall or pg_restore documentation how to restore the dump file(s).