-
Notifications
You must be signed in to change notification settings - Fork 117
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
More automated upgrade #26
Comments
I have not considered creating such a thing (and have no plans to do so here), but I don't see any strong technological limitations to doing so if someone wanted to implement the logic. 👍 |
What's the goal of this way of upgrading? It's also not clear how it's supposed to work. Do we have the old DATA folder and create a second (new) data directly with |
The previous method requires explicitly indicating the version for both the input and the output. Can you explain what you mean by cumbersome? Seems like this proposal would lead to a solution that is very not cumbersome. I basically implemented all this in my own postgres main docker image. |
If I understood correctly, step two involves setting the version correctly, which means you need to know a version, anyway, and perhaps adjust it.
Yes, again cumbersome. This way you basically have to maintain a custom Docker image, when you could use the default from this project, without any extra work. It's inefficient to reinvent the wheel, when you can use an already available solution. This costs time and resources. It's also more error prone to keep a tiny side project maintained than relying on a popular default solution, many people use and therefore test. |
Trust me, I'm aware of the pain of maintaining my own docker image. I can't believe the postgres upgrade is as bad as it is, necessitating this sort of nonsense. Seems mysql upgrade to 8 is similar pain. My proposal is to do all the manual work automatically, that's all. The folder confusion is similar with the manual process. Correct, it uses PG_VERSION file. |
Okay, but that would work with the current way of upgrading, already. Just create the two folders automatically, move
So, if I want to upgrade from 9.6 to 13, what version does the P.S.: I already automated the current way of upgrading, but it's an embedded shell script in a bigger application. |
PG_VERSION is the date the version the data is at. Once you upgrade, it reflects the version of postgres you upgraded to. In your example, you would pull the postgres 13 image and it would read the version 9 from the PG_VERSION file. I admit I'm not sure if it would be 9 or 9.6, I don't remember. |
Is there any consideration for a more in-place upgrade?
The text was updated successfully, but these errors were encountered: