-
Notifications
You must be signed in to change notification settings - Fork 907
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
[Bug]: failed upgrade postgresql 13 to 14 #7267
Comments
Do you have some timescaledb leftovers in the template database? |
I went through major upgrade hell a few months ago and I think I've got it under control. Please: make sure all extensions are the same version in the "old" database! If you are using pg14-ts2.15.3 as a "NEW" DB, then also make sure all extensions in the "OLD" DB are all 2.15.3. |
Have the same issue here . Old DB pg16.4-ts2.17.2-all All extenstions in source and dest are in version 2.17.2 |
pg_upgrade works fine. I used it twice. Here are my notes from the upgrades.
|
Do you that within docker ? I try to update from pg16.4-ts2.17.2 to pg17.2-ts2.17.2 from this base image https://hub.docker.com/r/timescale/timescaledb-ha/tags?name=pg17
|
Yes, we probably have a similar environment. I think you have an mistake in 2a). You need to remove the timescaledb extension for each database (template1 and postgres) in the new empty pg16 instance.
|
Ok. Thanks. I am moving on. I am endup with
I tinhk the reason is dropping the exenstions right ? |
I revise my earlier post. The migration step does effectifly nothing. -- Chunkk sizes
SELECT
*,
pg_total_relation_size(c.chunk_schema || '.' || c.chunk_name) / 1024 / 1024 AS total_size
FROM
timescaledb_information.hypertables h
JOIN
timescaledb_information.chunks c
ON
h.hypertable_name = c.hypertable_name
ORDER BY
total_size DESC; The result is empty. I see no schema is migrated.
I am doing the same. Either pg16 or pg17 is runing. The migration container has access to the volume of 16 and 17 |
Check "1a)Update all databases". |
I missed that part. You are my hero for this week. Thanks a bunch |
What type of bug is this?
Incorrect result
What subsystems and features are affected?
Other
What happened?
New cluster database "postgres" is not empty: found relation "_timescaledb_catalog.hypertable"
Failure, exiting
TimescaleDB version affected
2.15.3
PostgreSQL version used
13, 14
What operating system did you use?
Ubuntu 22 x64
What installation method did you use?
Deb/Apt
What platform did you run on?
On prem/Self-hosted
Relevant log output and stack trace
How can we reproduce the bug?
The text was updated successfully, but these errors were encountered: