4 ms·
> 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 PostgreSQ
by magicalhippo 6y ago
> 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.