JIT compilation
LLVM-based just-in-time compilation of expressions and tuple deforming. Introduced in PostgreSQL 11.
Versions
- PostgreSQL 20 · worked-on · improved · major
- PostgreSQL 19 · shipped · improved · minor · 1 commit · +4 / -4 lines
- PostgreSQL 18 · shipped · improved · minor · 2 commits · +194 / -39 lines
- PostgreSQL 17 · shipped · improved · moderate · 2 commits · +208 / -6 lines
- PostgreSQL 16 · worked-on · improved · moderate
Threads
- configure picks a clang that doesn't match LLVM_CONFIG
- LLVM JIT: any JIT-compiled query crashes (SIGILL) on a libLLVM 19 + ASAN build
- JIT inlining crashes on non-exported extension functions
- [RFC] Rework the executor opcodes to be position independent to improve JIT and interpreter performances
- [PATCH] JIT inlining SIGSEGV in MemoryBuffer::getFile with LLVM 17 / GCC 13
- BUG #19609: Server crashes when executing a JIT-compiled SQL function on s390x
- Change default of jit to off
- LLVM 22
- LLVMJIT: introduce force-inlined functions
- [PATCH] llvmjit: always add the simplifycfg pass
- regression tests fails with llvm22
- llvmjit - improve code generated in O0
- Some questions about JIT optimization
- Add missing JIT inline pass for llvm>=17
- LLVM JITLink attempt II (WIP)
- Minor LLVM cleanups
- Compiler warning on Debian 12, PostgreSQL 16 Beta3
- [PATCH] jit: fix build with LLVM-21
- ERROR: XX000: could not find memoization table entry (reproducible)
- BUG #18801: JIT recompiles function for each row if custom aggregation function is used
- PoC. The saving of the compiled jit-code in the plan cache
- Special-case executor expression steps for common combinations
- Failed assertion with jit enabled
- JIT: The nullness of casetest.value can be determined at the JIT compile time.
- JIT compilation per plan node
- RISC-V animals sporadically produce weird memory-related failures
- BUG #18610: llvm error: __aarch64_swp4_acq_rel which could not be resolved
- JIT: Remove some unnecessary instructions.
- Segfault in jit tuple deforming on arm64 due to LLVM issue
- PostgreSQL 17 Segmentation Fault
- Requiring LLVM 14+ in PostgreSQL 18
- [PATCH] Enable using llvm jitlink as an alternative llvm jit linker of old Rtdyld.
- BUG #18503: Reproducible 'Segmentation fault' in 16.3 on ARM64
- server crash on raspberry pi for large queries
- Should we move the resowner field from JitContext to LLVMJitContext?
- broken JIT support on Fedora 40
- JIT causes core dump during error recovery
- JIT crash introduced by 6185c9737c with LLVM 14
- FYI: LLVM Runtime Crash
- Confusing numbers in actual time in explain analyze output of recursive query when jit is used
- AW: Re: BUG #18471: Possible JIT memory leak resulting in signal 11:Segmentation fault on ARM
- BUG #18471: Possible JIT memory leak resulting in signal 11: Segmentation fault on ARM
- Oom on temp (un-analyzed table caused by JIT) V16.1
- LLVM 18
- Disable LLVM bitcode generation with pgxs.mk framework.
- Guiding principle for dropping LLVM versions?
- Building PosgresSQL with LLVM fails on Solaris 11.4
- BUG #18254: could not load library llvmjit.so,Undefined symbol "_ZN4llvm12MemoryBuffer7getFileERKNS_5TwineEbbbSt
- Memory leak on subquery as scalar operand
- Issue with cancel_before_shmem_exit while searching to remove a particular registered exit callbacks
- Fix documentation for pg_stat_statements JIT deform_counter
- pgsql: jit: Support opaque pointers in LLVM 16.
- Remove obsolete check for TTSOpsVirtual from slot_compile_deform
- LLVM 16 (opaque pointers)
- Server crash on RHEL 9/s390x platform against PG16
- [RFC] Add jit deform_counter
- BUG #18132: llvm-jit does not build with LLVM 17
- Segmentation Fault
- BUG #17943: Undefined symbol LLVMBuildGEP in llvmjit.so during pg_restore
- BUG #18074: After enabling JIT, the query runtime increased by over a thousand times.
- [PATCH] Support static linking against LLVM
- One more problem with JIT
- Duplicated LLVMJitHandle->lljit assignment?
- Missing llvm_leave_fatal_on_oom() call
- Stampede of the JIT compilers
- BUG #17965: SIGSEGV from LLVM13 JIT when executing SQL.
- llvmjit.so: undefined symbol: LLVMBuildGEP Fedora 38
- Error logged starting postgresql in Fedora 38
- BUG #17929: LLVMBuildGEP: symbol not found
- BUG #17927: Postgres does not compile with LLVM-16
- BUG #17900: llvm-jit uses deprecated symbols in LLVM 16
- Where are we on supporting LLVM's opaque-pointer changes?
- broken master branch
- Unexpected abort at llvm::report_bad_alloc_error when load JIT library
- Lazy JIT IR code generation to increase JIT speed with partitions
- Out-of-date clang/llvm version lists in PGAC_LLVM_SUPPORT
- BUG #17673: Regression tests failed with llvm 11+ when using address sanitizers
- [PATCH] Fix build with LLVM 15 or above
- BUG #17620: JIT-Compiler causes Segmentation Fault
- cannot to compile master in llvm_resolve_symbols
- Query JITing with LLVM ORC
- clang 15 doesn't like our JIT code
- Add parameter jit_warn_above_fraction
- BUG #16754: When using LLVM and parallel queries aborted all session by pg_cancel_backend.
- Future Postgres 15 and Clang 15
- Making JIT more granular
- BUG #17437: time spent in JIT is also attributed to function scan
- 2000 times performance drop after pg14 upgrade when JIT = 1
- Latest LLVM breaks our code again
- Spelling change in LLVM 14 API
- terminate called after throwing an instance of 'std::bad_alloc'
- JIT doing duplicative optimization?
- WIP: expression evaluation improvements
- BUG #17241: llvm::install_bad_alloc_error_handler error
- Don't clean up LLVM state when exiting in a bad way
- BUG #16696: Backend crash in llvmjit
- seawasp failing, maybe in glibc allocator
- BUG #16076: JIT causes huge delays in a complex query. jit=off solves it.
- gcc 11.1.0 warnings in llvmjit_expr.c
- Do we work with LLVM 12 on s390x?
- BUG #16971: Incompatible datalayout errors with llvmjit
- BUG #16707: Memory leak
- PG vs LLVM 12 on seawasp, next round
- a curious case of force_parallel_mode = on with jit'ing
- jit and explain nontext
- possible replacement for llvm JIT
- upcoming API changes for LLVM 12
- hard readable explain due JIT
- gs_group_1 crashing on 13beta2/s390x
- BUG #16516: when testing jit get terminate called after throwing an instance of 'std::bad_function_call'
- Postmaster Crashing - Postgres 11 when JIT is enabled
- Fix compilation failure against LLVM 11
- [PATCH] Skip llvm bytecode generation if LLVM is missing
- [IBM z Systems] Getting server crash when jit_above_cost =0
- PG v12.2 - Setting jit_above_cost is causing the server to crash
- Default JIT setting in V12
- JIT performance bug/regression & JIT EXPLAIN
- BUG #16183: PREPARED STATEMENT slowed down by jit
- Why JIT speed improvement is so modest?
- BUG #16136: Bug with cost calculation and JIT application
- JIT: Optimize generated functions earlier to lower memory usage
- Don't codegen deform code for virtual tuples in expr eval for scan fetch
- LLVM breakage on seawasp
- BUG #15969: PG12 b3 with LLVM JIT can't load library llvmjit.so: unresolvd symbol llvm::fatal_error_handler
- LLVM compile failing in seawasp
- PG 11 JIT deform failure
- Typo: llvm*.cpp files identified as llvm*.c
- JIT on FreeBSD ARMv7
- JIT and prepared queries
- BUG #15486: PG11 jit on 50x slower than jit off
- Header checking failures on LLVM-less machines
- Install JIT headers
- RTLD_GLOBAL (& JIT inlining)
- BUG #15563: postgresql11-server must require postgresql-llvmjit
- pg11.1 jit segv
- PostgreSQL 12, JIT defaults
- Query is over 2x slower with jit=on
- auto_explain: Include JIT output if applicable
- [patch] Support LLVM 7
- Defaulting to jit=on/off for v11
- JIT compiling expressions/deform + inlining prototype v2.0
- JIT explain output
- LLVM jit and matview
- JIT breaks PostGIS
- wrong query result with jit_above_cost= 0
- LLVM jit and window functions on a temporary table
- [PATCH] LLVM tuple deforming improvements
- effect of JIT tuple deform?
- Typo in llvm_function_reference
- JIT versus standalone-headers checks
- PostgreSQL 11 beta1 : regressions failed on OpenBSD with JIT
- PGXS fails to byte-compile pgsql-ogr-fdw
- PG11 jit failing on ppc64el
- Cold welcoming message when installing anything because of LLVM bitcode stuff
- jitflags in _outPlannedStmt and _readPlannedStmt treated as bool type
- Setting rpath on llvmjit.so?
- Build fails with different versions of clang and LLVM
- JIT flag definitions not parenthesized
- pgsql: Add documentation for the JIT feature.
- explain with costs in subselect.sql
- Using JIT for VACUUM, COPY, ANALYZE
- Constifying numeric.c's local vars
- datetime.h defines like PM conflict with external libraries
- Expression based grouping equality implementation
- Expression based aggregate transition / combine function invocation
- Infrastructure for JIT compiling tuple deforming
- plpgsql, caching, resowners and jit