RefLib

Reference library for AI

Back

postgresql_16:4.17.1 What Is JIT compilation?

PostgreSQL 16 > Server Administration > Just-in-Time Compilation (JIT) > What Is JIT compilation?

Just-in-Time (JIT) compilation is the process of turning some form of interpreted program evaluation into a native program, and doing so at run time. For example, instead of using general-purpose code that can evaluate arbitrary SQL expressions to evaluate a particular SQL predicate like WHERE a.col = 3, it is possible to generate a function that is specific to that expression and can be natively executed by the CPU, yielding a speedup.

PostgreSQL has builtin support to perform JIT compilation using LLVM when PostgreSQL is built with --with-llvm (see postgresql_16:4.2.3.3).

See src/backend/jit/README for further details.

Subsections

Back