by m_st · 5y ago · 0 comments
And if you didn't adapt: Would your code still running after upgrading (backwards compatible)?
I'm asking as a dev mostly working with MS-SQL and seriously considering moving to PostgreSQL one day.
The biggest bites have been changing the database driver from pypgsql to psycopg2 and there was a binary column default wire format change at the 9/9.1 upgrade. In another job, I've got essentially the same code running against 9.5 and 12, and I don't notice the difference.
Performance improvements for a feature are almost always 'free', but obviously your code isn't just going to start using CTEs if you haven't been using them.
The changes were made "for-free" as in no code needed to be changed, but when changing query planners caution should be heeded..
I remember a time where a mysql 5.6->5.7 upgrade crippled our entire monitoring stack:
https://bugs.mysql.com/bug.php?id=87164
https://dba.stackexchange.com/questions/121841/mysql-5-7-inn...
testing the llvm-based optimiser (in postgres 11) showed little benefit, and in a few circumstances slowed things down. had i had more time to poke around, i'd have probably got it to a place where it represented an improvement, but, up until i left that role, it was a feature that remained switched off - postgres doesn't generally introduce features that represents "breaks" in code.
having not had _that_ much experience with MS-SQL, i'd still recommend the switch. looking through the things in postgres that i take for granted vs. what's in MS-SQL, i don't think i could cope with not having postgres :)