←back to thread

264 points davidgomes | 1 comments | | HN request time: 0.201s | source
Show context
yen223 ◴[] No.41875321[source]
Databases tend to be "stickier" than other parts of any large software system. Largely because database migrations are costly. You can't just tear down an old database and rebuild a new one, you have to figure out how to move all that data across too.

The consequence is that things in database-land tends to move slower than other types of software. This I think is the major reason why we still use SQL.

replies(2): >>41875368 #>>41875643 #
jart ◴[] No.41875368[source]
Have postgres updates actually been requiring users do migrations? Or is this just a fear that something will go wrong?
replies(2): >>41875513 #>>41876371 #
1. magicalhippo ◴[] No.41876371[source]
From what I can gather, yes[1]:

A dump/reload of the database or use of the pg_upgrade application is required for major upgrades.

Now, seems one can mostly use pg_upgrade, which only rewrites the system tables[2] so is fairly quick. But if on-disk format has changed it seems you're forced to dump and reload.

At work we've mainly been using SQLAnywhere, which would just disable new functionality for databases using old on-disk format. So upgrading major versions has usually been fairly painless and quick.

[1]: https://www.postgresql.org/support/versioning/

[2]: https://www.postgresql.org/docs/current/pgupgrade.html