- Install Citus v9.3.x
- Copy citus--9.4-1--9.3-2.sql to /share/extension/citus--9.4-1--9.3-2.sql
- Restart PostgreSQL
- Run: ALTER EXTENSION citus UPDATE;
- Delete /share/extension/citus--9.4-1--9.3-2.sql
- Install Citus v9.2.4
- Copy citus--9.4-1--9.3-2.sql and citus--9.3-2--9.2-4.sql to /share/extension/
- Restart PostgreSQL
- Run: ALTER EXTENSION citus UPDATE;
- Delete /share/extension/citus--9.4-1--9.3-2.sql and citus--9.3-2--9.2-4.sql
- Install Citus v9.2.x
- Copy citus--9.4-1--9.3-2.sql, citus--9.3-2--9.2-4.sql and citus--9.2-4--9.2-2.sql to /share/extension/
- Restart PostgreSQL
- Run: ALTER EXTENSION citus UPDATE;
- Delete /share/extension/citus--9.4-1--9.3-2.sql, citus--9.3-2--9.2-4.sql and citus--9.2-4--9.2-2.sql
- If you build from source and you wish to skip manual script installation steps, you can remove cleanup-before-install make target dependency here: https://github.com/citusdata/citus/blob/d1bab78d7975936a3d7276cc4c422532744868ad/src/backend/distributed/Makefile#L77 If you remove this line before
make install
commands, you can safely skip steps 2 and 5. - To see how Citus versions are coupled with schema migration versions see the diagram here