|
1 | 1 | = postgres Operator User Guide |
2 | | -v1.0.0, {docdate} |
| 2 | +v1.1.0, {docdate} |
3 | 3 |
|
4 | 4 | This document is meant for users and demonstrates |
5 | 5 | the basic interface of the *pgo* command line interface. |
@@ -134,6 +134,57 @@ pgo delete cluster mycluster |
134 | 134 | *Note*, when you delete a database or cluster, the operator |
135 | 135 | will NOT delete any associated PVCs used by the cluster or database. |
136 | 136 |
|
| 137 | +== Minor Database and Cluster Upgrade |
| 138 | + |
| 139 | +You can perform a minor Postgres version upgrade |
| 140 | +of either a database or cluster as follows: |
| 141 | +.... |
| 142 | +pgo create upgrade mydatabase |
| 143 | +pgo create upgrade mycluster |
| 144 | +.... |
| 145 | + |
| 146 | +When you run this command, it will cause the operator |
| 147 | +to delete the existing containers of the database or cluster |
| 148 | +and recreate them using the currently defined Postgres |
| 149 | +container image specified in your pgo configuration file. |
| 150 | + |
| 151 | +The database data files remain untouched, only the container |
| 152 | +is updated, this will upgrade your Postgres server version only. |
| 153 | + |
| 154 | +== Major Database and Cluster Upgrade |
| 155 | + |
| 156 | +You can perform a major Postgres version upgrade |
| 157 | +of either a database or cluster as follows: |
| 158 | +.... |
| 159 | +pgo create upgrade mydatabase --upgrade-type=major |
| 160 | +pgo create upgrade mycluster --upgrade-type=major |
| 161 | +.... |
| 162 | + |
| 163 | +When you run this command, it will cause the operator |
| 164 | +to delete the existing containers of the database or cluster |
| 165 | +and recreate them using the currently defined Postgres |
| 166 | +container image specified in your pgo configuration file. |
| 167 | + |
| 168 | +The database data files are converted to the new major Postgres |
| 169 | +version as specified by the current Postgres image version |
| 170 | +in your pgo configuration file. Currently only a Postgres |
| 171 | +9.5 to 9.6 upgrade is supported. |
| 172 | + |
| 173 | +In this scenario, the upgrade is performed by the Postgres |
| 174 | +pg_upgrade utility which is containerized in the *crunchydata/crunchy-upgrade* |
| 175 | +container. The operator will create a Job which runs the upgrade container, |
| 176 | +using the existing Postgres database files as input, and output |
| 177 | +the updated database files to a new PVC. |
| 178 | + |
| 179 | +Once the upgrade job is completed, the operator will create the |
| 180 | +original database or cluster container mounted with the new PVC |
| 181 | +which contains the upgraded database files. |
| 182 | + |
| 183 | +As the upgrade is processed, the status of the *pgupgrade* TPR is |
| 184 | +updated to give the user some insight into how the upgrade is |
| 185 | +proceeding. Upgrades like this can take a long time if your |
| 186 | +database is large. The operator creates a watch on the upgrade |
| 187 | +job to know when and how to proceed. |
137 | 188 |
|
138 | 189 | == Viewing PVC Information |
139 | 190 |
|
|
0 commit comments