-
Notifications
You must be signed in to change notification settings - Fork 312
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RFC] Cluster Upgrade helper #243
Comments
Looks good for me @lucernae . Just a note that they are various upgrade options. I haven't done a comparison of what the disadvantages and advantages are. I have also used the |
I see, so upgrading the database doesn't necessarily upgrade postgis related objects? |
If you upgrade the cluster it does everything. https://www.postgresql.org/docs/12/upgrading.html postgis_restore.pl uses a normal pgdump which might work well with the pg_backup containers that already produce the
|
Some update on my part.
|
I would like to add functionality to upgrade cluster from previous major version to current major version.
I imagine we can use a stateless container to perform the upgrade like this:
Proposed implementations
We are going to use postgresql common upgrade procedure, which is using
pg_upgradecluster
.The upgrade process is going to be wrapped in
/scripts/cluster_upgrade.sh
.What the script will do:
apt install
at run time)main
by doingpg_renamecluster
. This should be ok and stateless since the containers only modifies internal data.PGDATANEW
. This directory should be mounted to a volume.Output:
Extensibility:
Users might want to perform some extra initialization/post upgrade steps. We provide a file hook called
/upgrade.d/pre.sh
andupgrade.d/post.sh
to put a script hook.pre.sh
will be executed before the upgrade.post.sh
will be executed after a successful upgrade. Upgrade error can be detected and handled directly from stdout logs.CC @NyakudyaA
The text was updated successfully, but these errors were encountered: