r/programming • • Sep 24 '20

PostgreSQL 13 Released!

https://www.postgresql.org/about/news/2077/
1.3k Upvotes

236 comments sorted by

View all comments

66

u/WJMazepas Sep 24 '20

We still use version 9.6 on my work. I wonder if it's easy making a upgrade to this new version

38

u/nibord Sep 24 '20

In my experience, yes. 10, 11, and 12 were very easy upgrades. There may be some specific reasons to stay on an older version, but likely it's just laziness.

18

u/WJMazepas Sep 24 '20

It's a small company and my bosses like to use old and stable versions. But we also have troubles with the size and performance of the postgres so upgrading would help a lot

7

u/[deleted] Sep 24 '20

[removed] — view removed comment

3

u/ants_a Sep 25 '20

All postgres releases are stable, the version that is included in centos is just the one that happened to be current.

That is fine for software that is just quietly ticking in the corner, but anybody actively developing a software product should be running latest release, or close to it, from pgdg repository. Postgres is very good at backwards compatibility. Most core developers have enough consulting experience to veto any change that would cause undue pain while upgrading.

55

u/nibord Sep 24 '20

So...laziness.

0

u/[deleted] Sep 24 '20

[deleted]

22

u/rniestroj Sep 24 '20

Continuous, small upgrades cost way less then big once-in-5-years upgrades.

2

u/SGBotsford Sep 25 '20

Depends on the Company. With Adobe, I postpone upgrading as long as I can. ALL my workflows break every time. Upgrading only every 2nd or 3rd major release is sufficient pain.

With OS's I try to upgrade as rarely as possible (I'm still running Yosemite) then upgrade only to the version below what is current. I'm really tired of being Apple's beta tester.

0

u/[deleted] Sep 24 '20

[deleted]

19

u/Hauleth Sep 24 '20

There is one thing though - if you upgrade often, then you have workflow established and it is not an issue to do upgrade in case of major issue. If you do it rarely then you need to do all that planning each time you want to do an upgrade.

17

u/nibord Sep 24 '20

But there doesn’t need to be a performance gain to justify the expense. Being on a older version of software is its own technical debt that will need to be paid off.

The upgrade from 9.6 to 10 and 10 to 11 are relatively simple. But the tooling and documentation begin rotting once the project has moved on to newer releases. If you try to upgrade several years later and run into issues, you may not find a solution. The maintainers will have already moved on to newer versions and may not have cognitive capacity to help with problems in several-year-old releases.

I know when I say “laziness” it sounds like I’m being cynical, and I am. But the fact is you’re going to pay for the upgrade either way. If you take it as technical debt, the cost could be much greater. So the reason given not to do it is “I don’t want the trouble”, not a rational weighing of paying down the debt now vs later.

2

u/weirdwallace75 Sep 24 '20

The upgrade from 9.6 to 10 and 10 to 11 are relatively simple. But the tooling and documentation begin rotting once the project has moved on to newer releases. If you try to upgrade several years later and run into issues, you may not find a solution.

I generally agree with you, but I'd be concerned if dump-to-SQL and restore-from-SQL could ever fail to produce an identical database as part of an upgrade.

3

u/ricecake Sep 25 '20

It shouldn't happen, but it can happen.
I've seen it with a gin index that had an edge case based on insertion order, causing the index to balance differently, and resulting in radically different performance after the load.
Caught it in testing, and the fix was already in the works for a minor release, so it wasn't huge, but memorable.

2

u/progrethth Sep 25 '20

Then you can use pg_upgrade instead. I have so far only have good experiences with it.

11

u/Wrexem Sep 24 '20

Downtime, linear size concerns, power, cooling, platform issues like hypervisors, it could be lots of things. Solve able with money.

→ More replies (15)
→ More replies (3)