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.
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.
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)
Replies (1)
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 (1)
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.