3 ms·
One thing is that Postgres doesn’t let you just upgrade to a new major version, as it doesn’t update the format of the on-disk binary database files; you must r
by ComputerGuru 6y ago
One thing is that Postgres doesn’t let you just upgrade to a new major version, as it doesn’t update the format of the on-disk binary database files; you must replicate from an existing node or dump/restore. MySQL upgrades the previous version when a new version is installed (which can cause problems, but is certainly “easier”).
- andruby 6y agoPg_upgrade [0] is an official part of postgres and does the binary inplace upgrade for you. You should obviously test before running in production, but it has worked perfectly for us when upgrading a 10+TB cluster from pg11 to pg13 [0] https://www.postgresql.org/docs/current/pgupgrade.html https://www.postgresql.org/docs/current/pgupgrade.html
- jeffbee 6y ago10TB is basically zero. At that scale you can choose anything and get away with it.
- tinus_hn 6y ago10 tb is definitely not zero if your project is of the ‘should I choose MySQL or Postgres’ variety.
- tehbeard 6y agoHonestly this just seems like you're waving your e-peen. Care to give some more details around why and what size of disk usage cause issues for postgres / other db upgrades?
- lilSebastian 6y agoA wonderfully constructive comment that keep people using this site, or not.
- darkwater 6y agoHow can someone with 10k karma write such a statement? Were you trolling? Are you serious? 10TB of relational database can be definetly troublesome to manage and pose challenges to many organizations.
- conradfr 6y agoNot totally ideal if you're using containers as it requires the binaries of the old and new version, unless I'm missing something.
- deleted 6y ago[deleted]
- megous 6y agoAll distros I've ever used (debian, arch) provide previous and current version of postgresql for the purpose of easy pg_upgrade. Debian even has special custom helper scripts for doing it. So just build your container with both postgres versions?
- pgaddict 6y agoThat's hardly a PostgreSQL issue. If your container tech does not allow installing both old and new version of the binaries, it's a silly container tech.
- conradfr 6y agoWell I use the official Postgresql docker image ;) Also it looks like this is not new https://github.com/docker-library/postgres/issues/37 https://github.com/docker-library/postgres/issues/37
- Apaec 6y agoNote that the "official" PostgreSQL docker image is maintained by Docker Inc - not by PostgreSQL contributors/members.
- salmo 6y agoContainerized DBs are great for dev work, toy projects, etc. Notsomuch for production. I know... folks do it. But I wouldn't run anything on it that I wouldn't do w/ sqlite.
- 6y ago
- ASalazarMX 6y agoI think this is very convenient; you don't want to automatically upgrade a big database because you probably want to choose the downtime window. This is obviously by design, but I'd also like being able to automate the pg_upgradecluster pg_dropcluster process, specially for install-and-forget little databases. IMO, the biggest shock from the MSSQL/MYSQL to PostgreSQL migration was not having 1 or 2 specific files per database, specially if you used to backup the files instead of doing a formal database backup.
- deleted 6y ago[deleted]