| Running Version | Upgrade Version | Supported Version |
|---|---|---|
| A1 | B1 | C1 |
| A2 | B2 | C2 |
| A3 | B3 | C3 |
The External PostgreSQL upgrade steps are provided as a courtesy. It is the responsibility of the user to upgrade and maintain any External PostgreSQL configurations.
Follow these steps to upgrade the PostgreSQL major version.
Do we need to upgrade Supermarket first?
sudo supermarket-ctl stop
sudo supermarket-ctl start postgresql
/opt/supermarket/embedded/bin/pg_dumpall -U supermarket -p 15432 > /tmp/supermarket-dump.sql
/opt/supermarket/embedded/bin/vacuumdb --all --full -p 15432
/opt/supermarket/embedded/bin/reindexdb --all -p 15432
supermarket-ctl restart
If either the vacuumdb or reindexdb commands fail
/opt/supermarket/embedded/bin/psql -U supermarket -d postgres -p 15432 -c "drop database supermarket"
/opt/supermarket/embedded/bin/psql -U supermarket -d postgres -p 15432 -c "create database supermarket"
dump.sql file/opt/supermarket/embedded/bin/psql -U supermarket -d supermarket -p 15432 -f /tmp/supermarket-dump.sql
supermarket-ctl restart
© Chef Software, Inc.
Licensed under the Creative Commons Attribution 3.0 Unported License.
The Chef™ Mark and Chef Logo are either registered trademarks/service marks or trademarks/servicemarks of Chef, in the United States and other countries and are used with Chef Inc's permission.
We are not affiliated with, endorsed or sponsored by Chef Inc.
https://docs.chef.io/supermarket/supermarket_upgrade/