Postgres major version upgrades with minimal downtime
1–10 of 10 posts
Re: Postgres major version upgrades with minimal downtime
#2I love postgres but every major upgrade needs weird interventions...
Re: Postgres major version upgrades with minimal downtime
#3Anyone knows why upgrading postgres is shit? I love postgres but every major upgrade needs weird interventions...
Re: Postgres major version upgrades with minimal downtime
#4Anyone knows why upgrading postgres is shit? I love postgres but every major upgrade needs weird interventions...
Imagine there are changes to the physical format for example, now you need to make sure all code works with both the new and the old format during the upgrade (as some pages will have been updated and others not). Supporting both versions requires temporary backwards compatibility code, bloating the codebase, and introduces a risk of error and increases the complexity of the system.
Since Postgres prioritises correctness probably more than any other database system I know, I’d guess they don’t want to expose themselves to the risk of error.
Re: Postgres major version upgrades with minimal downtime
#5Anyone knows why upgrading postgres is shit? I love postgres but every major upgrade needs weird interventions...
Doesn't the linked post answer your question in the first few sentences?
They just state that it is for various reasons.
And I'm not even talking about upgrading without downtime I mean the problem that you can't just replace 14 with 15 without preparing the DB upfront.
Re: Postgres major version upgrades with minimal downtime
#6Anyone knows why upgrading postgres is shit? I love postgres but every major upgrade needs weird interventions...
Online upgrades in general are difficult. Imagine there are changes to the physical format for example, now you need to make sure all code works with both the new and the old format during the upgrade (as some pages will have been updated and others not). Supporting both versions requires temporary backwards compatibility code, bloating the codebase, and introduces a risk of error and increases the complexity of the…
It's a scale issue. If one does it for all, less work for everyone :)
Re: Postgres major version upgrades with minimal downtime
#7Anyone knows why upgrading postgres is shit? I love postgres but every major upgrade needs weird interventions...
Online upgrades in general are difficult. Imagine there are changes to the physical format for example, now you need to make sure all code works with both the new and the old format during the upgrade (as some pages will have been updated and others not). Supporting both versions requires temporary backwards compatibility code, bloating the codebase, and introduces a risk of error and increases the complexity of the…
Re: Postgres major version upgrades with minimal downtime
#8Anyone knows why upgrading postgres is shit? I love postgres but every major upgrade needs weird interventions...
Re: Postgres major version upgrades with minimal downtime
#9Earlier quoted context omitted.
Online upgrades in general are difficult. Imagine there are changes to the physical format for example, now you need to make sure all code works with both the new and the old format during the upgrade (as some pages will have been updated and others not). Supporting both versions requires temporary backwards compatibility code, bloating the codebase, and introduces a risk of error and increases the complexity of the…
Why doesn't postgres automatically (or with one-click confirmation) update all databases on startup when it discovers databases from a previous major version?
Re: Postgres major version upgrades with minimal downtime
#10Earlier quoted context omitted.
Online upgrades in general are difficult. Imagine there are changes to the physical format for example, now you need to make sure all code works with both the new and the old format during the upgrade (as some pages will have been updated and others not). Supporting both versions requires temporary backwards compatibility code, bloating the codebase, and introduces a risk of error and increases the complexity of the…
Why doesn't postgres automatically (or with one-click confirmation) update all databases on startup when it discovers databases from a previous major version?
For large DBs though you may not be able to wait for it to happen offline.