An unofficial, read-only Hacker News reader.

What Changes When You Upgrade from PostgreSQL 18 to 19 (opens external site)

127 points by rgoomar 2 days ago | rishigoomar.com | 53 comments on HN

View full thread · View on Hacker News

Comment thread (3)

  1. There's literally a utility, pg_upgrade, that comes with PostgreSQL for doing upgrades:

    https://www.postgresql.org/docs/current/pgupgrade.html

    Are you saying that can go wrong?

    Replies (1)
    1. Yes, and this is a tool you need to run yourself when migrating between major versions.

      The discussion was started by someone YOLOing their service by using something like "postgres:latest" docker image (I assume), and complaining that it breaks when major version changes.

      Replies (1)
      1. The times when pgautoupgrade goes wrong are rare, and they've mostly turned out to be ~99% upgrade scripting related, the containers being used in an unusual way, or unusual PostgreSQL extensions that need special treatment which we haven't yet taken into account.

        ie Bitnami containers turned out to do weird things, and it took a while to get the pgautoupgrade scripting to play well with them.

        The PostgreSQL 17 → 18 on disk layout change by Docker Inc's "postgres" team also caused significant problems, as they were warned it would. But they did it anyway. :(

        The pg_upgrade utility which it uses, which comes with PostgreSQL itself, has been very solid.