News for hackers. Stuff that matters.
Re:JIT-Compiling SQL Queries in PostgreSQL Using LLVM by magicalhippo on Monday February 22, 2021 @08:42AM (#26224369)
> query cost

That would be query execution cost, right? And you're after some knobs to tune query preparation/compilation cost?

I don't know how the PostgreSQL JIT thing works, but I imagine it already has an AST-ish structure of the query by the time it calls LLVM. In that case I guess it should be possible to assign some weights to the nodes/elements and get an estimate for how long it'll take to compile.

There are no comments on this comment yet.