Skip to content
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]: pg_upgrade cannot upgrade 2.12.2-pg13 to 2.14.2-pg15 #6803

Closed
jflambert opened this issue Apr 4, 2024 · 5 comments
Closed

[Bug]: pg_upgrade cannot upgrade 2.12.2-pg13 to 2.14.2-pg15 #6803

jflambert opened this issue Apr 4, 2024 · 5 comments
Labels
bug upgrade Issue is related to upgrading the extension or the PostgreSQL version.

Comments

@jflambert
Copy link

jflambert commented Apr 4, 2024

What type of bug is this?

Unexpected error

What subsystems and features are affected?

Other

What happened?

I've performed major postgres upgrades with mixed timescaledb versions before. Currently I am unable to upgrade from 2.12.2-pg13 to 2.14.2-pg15 due to this specific error:

could not load library "$libdir/timescaledb-2.14.2": ERROR: attempt to redefine parameter "timescaledb.enable_deprecation_warnings"

Of course if I upgrade the extension to 2.14.2 on the 13 cluster before upgrading to 15, no problem.

TimescaleDB version affected

2.14.2

PostgreSQL version used

15.6

What operating system did you use?

timescaledb-ha

What installation method did you use?

Docker

What platform did you run on?

On prem/Self-hosted

@jflambert jflambert added the bug label Apr 4, 2024
@jflambert jflambert changed the title [Bug]: pg_upgrade cannot upgrade pg13-ts2.12.2 to pg15-ts2.14.2 [Bug]: pg_upgrade cannot upgrade 2.12.2-pg13 to 2.14.2-pg15 Apr 4, 2024
@nikkhils
Copy link
Contributor

nikkhils commented Apr 4, 2024

@jflambert while doing major upgrades, we typically recommend to upgrade to the required timescaledb version on existing curren tPG version and then do the subsequent PG version upgrade. It seems to be working fine following those recommendations.

@jflambert
Copy link
Author

jflambert commented Apr 4, 2024

Yes I can confirm using same timescaledb versions is successful. No problem. I did mention it in the bug report.

But in this case I am highlighting a regression. I'll try to dig up some older logs where mixed timescaledb versions were not problematic. Note that I'm using the timescaledb-ha image so all historical versions are in the lib folder.

@jnidzwetzki
Copy link
Contributor

#4503 seems to be related.

@jnidzwetzki jnidzwetzki added the upgrade Issue is related to upgrading the extension or the PostgreSQL version. label Apr 8, 2024
@jflambert
Copy link
Author

You're right @jnidzwetzki I might possibly have created a duplicate here. However my error message is slightly different.

What's more I actually posted in that issue that using timescaledb-ha solved my issue at the time. So in fact this might still be a regression. I know you guys made big GUC changes recently.

@svenklemm
Copy link
Member

When doing major pg version upgrade source and destination version are required to be identical

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug upgrade Issue is related to upgrading the extension or the PostgreSQL version.
Projects
None yet
Development

No branches or pull requests

4 participants