An unofficial, read-only Hacker News reader.

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

131 points by rgoomar 3 days ago | rishigoomar.com | 63 comments on HN

View full thread · View on Hacker News

Comment thread (9)

  1. From an app dev perspective, 19 feels pretty quiet—especially since SQL/PGQ and GROUP BY ALL got pushed out to 20.

    For ops, though, it's a huge quality-of-life release. Built-in REPACK (CONCURRENTLY), turning on logical replication without a restart, and turning JIT off by default finally fix some of the biggest day-to-day operational headaches without needing external extensions or workarounds.

    Replies (1)
    1. The JIT default was terrible, I'm very surprised it survived that long. I really like Postgres, but that was the one rare misstep I've noticed.

      The JIT just hits so hard when it misfires, suddenly queries that took 100-200ms take 2 seconds because they hit the JIT threshold. And I've seen worse than that for more complex, but still usually fast queries.

      Replies (1)
      1. That sounds rough.
        Replies (1)
        1. Ahh, in chapter 30 of the Postgres docs they explain. The are using LLVM. If I recall correctly, then Chrome V8 and JVM explicitly use very different compiler designs, because GCC and LLVM make many trade-offs the other way than what you would want for JIT.

          Why didn’t postgres try plv8 for jit, instead? Only half-joking. It is designed for JIT way more than raw LLVM is.

          https://www.postgresql.org/docs/current/jit-reason.html

          Replies (2)
          1. Always thought the stuff that makes people good at data geometry and query planning also makes people good at compilers.

            Postgres is a surprising counter-example. Especially, because its overall quality seems rather high. Food for thought.

            On the other hand, fsync-gate showed that well-meaning people can end up talking past each other.

            Developing Postgres seems harder and harder by the day.

            Replies (1)
            1. > Developing Postgres seems harder and harder by the day.

              The price of success I'd say. The more success you have the more careful you have to be about rocking the boat.

              Continue this thread (1 replies) →

          2. Or cranelift.
            Replies (1)
            1. Thank you for suggesting Cranelift.

              Has anybody had good experience with ensuring Cranelift uses JIT and not AOT?