-
Notifications
You must be signed in to change notification settings - Fork 884
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
Unable to upgrade timescaledb from 11 to 12 using tianon/docker-postgres-upgrade #2260
Comments
@jflambert You can see the Dockerfile, which is used for building TimescaleDB image, at https://github.com/timescale/timescaledb-docker/blob/master/Dockerfile |
I have successfully used
Then the migration was then performed using the following command:
Note that if you are also going to update the version of TimescaleDB you have to first do that on the old version of PostgreSQL using the normal |
Wow @netrounds-fredrik amazing response! Thanks a lot, I'll try this next week, at which point I'll close this issue since it doesn't seem to be Timescale's "fault". However I do wish that their upgrade page included a few more options, such as this one!
Yeah I kind of learned that the hard way and actually raised an issue about this, which seems to have been picked up recently as "documentation". |
Damn! Saw response from @netrounds-fredrik too late. Just finished my own Mine is based on
|
hey thanks @cljk for your contribution! But I didn't think you needed to run |
To be honest, I don´t know if it´s needed. Since my base image is a "vanilla" ubuntu there is no magic in there. My script is derived from the timescale installation doc for Ubuntu - just combined version 11 and 12. https://docs.timescale.com/latest/getting-started/installation/ubuntu/installation-apt-ubuntu
|
Closing this since it seems this was resolved. Feel free to reopen if the issue still persists. |
Since people are having problems figuring out how to upgrade TimescaleDB and PostgreSQL, I think that the official documentation should be improved. |
Thanks so much for this information collected here. I am (still) in the process of upgrading pg11/timescale1.7.0 to pg12/timescale2.4.0. I decided on this upgrade path:
Some troubles I am having seem worth sharing. For doing step 1 (pg11 -> pg12) I wanted to use the Dockerfile given by @netrounds-fredrik . This lead me to the following error message when doing
It took me a while to figure out why postgres wanted to load timescaledb-1.5.1. Both databases |
I'm trying to use tianon/docker-postgres-upgrade to automate timescaledb upgrades from any version to any version. The idea is pretty simple (but ingenious): fetch binaries from both versions of postgresql and run
pg_upgrade --link
with any other optional flags (such as"-c timescaledb.restoring='on'"
)Using this very simple example, I can upgrade vanilla postgresql from 11 to 12 without issue
Now I'm trying to apply this simple example to timescaledb's image and I get an error at the
pg_upgrade
step.I get the following error:
I'm going to guess that timescaledb's image is slightly different from vanilla postgres. Any pointers?
The text was updated successfully, but these errors were encountered: