{"Entry":{"collection":"guc","key":"jit_profiling_support","name":"jit_profiling_support","aliases":[],"metadata":{"baseline":false,"boot_human":"Not specified","boot_val":null,"category":"Developer Options","category_zh":"","changed_in":["14"],"changes":[{"documentation_changed":false,"fields":{},"from":"10","status":"added","to":"11"},{"documentation_changed":true,"fields":{"short_desc":{"from":"Register JIT compiled function with perf profiler.","to":"Register JIT-compiled functions with perf profiler."}},"from":"13","status":"changed","to":"14"},{"documentation_changed":true,"fields":{},"from":"14","status":"changed","to":"15"}],"content_hash":"836ece9808a3acdf72562971c3212862fb9bba1781a94c686ace244ddae90bb5","context":"","default_changed_in":[],"default_history":[{"from":"11","to":"19","value":"off"}],"editorial":{"advice":{"olap":"Long analytical runs can amplify jit_profiling_support's debug overhead and artifacts. Prefer standard EXPLAIN and statistics first, and isolate any developer experiment from normal users.","oltp":"Do not tune production OLTP with jit_profiling_support. Enable it only for a bounded reproduction with an owner, log/disk budget, rollback condition, and evidence-capture plan; restore the default immediately afterward.","small":"Keep jit_profiling_support at its upstream default. A small host has less spare CPU, disk, connection, and log capacity for developer instrumentation."},"mechanism":["jit_profiling_support emits registration data so Linux perf can attribute samples to JIT-generated functions when LLVM support is available. Files are written under the server user's ~/.debug/jit directory.","The value is fixed at backend start and does not enable JIT. It only affects queries that generate code after crossing normal JIT gates.","PostgreSQL does not clean the profiling files automatically. Long-lived or busy systems can accumulate sensitive artifacts and consume disk. Its superuser-backend context fixes the value during connection startup and restricts who may set it."],"pitfalls":["Leaving jit_profiling_support enabled after the bounded diagnostic or recovery task.","Running the experiment on the only copy of production data.","Underestimating log, core-file, temporary-file, WAL, CPU, or connection-slot amplification.","Treating a server that merely starts or completes a query as proof that data and behavior are correct."],"references":[{"title":"PostgreSQL 19 Beta 4: jit_profiling_support","url":"https://www.postgresql.org/docs/19/runtime-config-developer.html#GUC-JIT-PROFILING-SUPPORT"},{"title":"PostgreSQL 19 release notes","url":"https://www.postgresql.org/docs/19/release-19.html"}],"related":["jit","jit_above_cost","jit_debugging_support","jit_dump_bitcode","data_directory"],"summary":"jit_profiling_support — Register JIT-compiled functions with perf profiler. Observed in PG11–19 Beta 4; its last measured boot default is off in PG19 Beta 4, with superuser-backend context. This is a beta-snapshot fact and can change before PostgreSQL 19 GA."},"enumvals":[],"first_version":"11","group":"Developer Options","group_slug":"developer","imported_at":"2026-09-27T17:57:31.439715+08:00","intro_commit":{"authored_at":"2018-03-22T11:07:55-07:00","discussion":["https://postgr.es/m/20170901064131.tazjxwus3k2w3ybh@alap3.anarazel.de"],"hash":"250bca7fc145b143d5e9aeeca66f0bb36cf4d5ef","subject":"Debugging and profiling support for LLVM JIT provider.","url":"https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=250bca7fc145b143d5e9aeeca66f0bb36cf4d5ef"},"key":"jit_profiling_support","last_version":"20","max_val":"","min_val":"","name":"jit_profiling_support","position":197,"present_in":["11","12","13","14","15","16","17","18","19","20"],"short_desc":"If LLVM has the required functionality, emit the data needed to allow perf to profile functions generated by JIT.","short_desc_zh":"","source_rev":"english-manuals:b56dbb21a3bbd498be5fa747981059fee14659e7c2e660a11d829b4147e485d9","unit":"","vartype":"bool"}},"Definition":{"Collection":"guc","Key":"jit_profiling_support","SourceDatabase":"center","Version":"18","SourceTable":"guc","SourceKey":"jit_profiling_support","SourceRevision":"english-manuals:b56dbb21a3bbd498be5fa747981059fee14659e7c2e660a11d829b4147e485d9","Facts":{"boot_val":"off","category":"Developer Options","context":"superuser-backend","description":"If LLVM has the required functionality, emit the data needed to allow perf to profile functions generated by JIT. This writes out files to ~/.debug/jit/; the user is responsible for performing cleanup when desired. The default setting is off. Only superusers and users with the appropriate SET privilege can change this parameter at session start, and it cannot be changed at all within a session.","doc":{"anchor":"GUC-JIT-PROFILING-SUPPORT","file":"runtime-config-developer.html","lang":"en","sha256":"f5e7e39d176c642ac0799c87669ce2f6f60fcd97d109e290860ec74c36d7ecad","slug":"18"},"documented":true,"enumvals":null,"extra_desc":null,"lang":"en","max_val":null,"metadata_version":"18","min_val":null,"name":"jit_profiling_support","short_desc":"Register JIT-compiled functions with perf profiler.","source":"pg-settings-source-snapshot","unit":null,"vartype":"bool"},"ManualEvidence":{"doc":{"anchor":"GUC-JIT-PROFILING-SUPPORT","file":"runtime-config-developer.html","lang":"en","sha256":"f5e7e39d176c642ac0799c87669ce2f6f60fcd97d109e290860ec74c36d7ecad","slug":"18"}},"MeasuredEvidence":{"metadata_version":"18"}},"Text":{"Collection":"guc","Key":"jit_profiling_support","SourceDatabase":"center","Version":"18","Locale":"en","Title":"jit_profiling_support","Summary":"If LLVM has the required functionality, emit the data needed to allow perf to profile functions generated by JIT. This writes out files to ~/.debug/jit/; the user is responsible for performing cleanup when desired. The default setting is off. Only superusers and users with the appropriate SET privilege can change this parameter at session start, and it cannot be changed at all within a session.","BodyHTML":"\u003cp\u003eIf LLVM has the required functionality, emit the data needed to allow perf to profile functions generated by JIT. This writes out files to ~/.debug/jit/; the user is responsible for performing cleanup when desired. The default setting is off. Only superusers and users with the appropriate SET privilege can change this parameter at session start, and it cannot be changed at all within a session.\u003c/p\u003e","SourceRevision":"english-manuals:b56dbb21a3bbd498be5fa747981059fee14659e7c2e660a11d829b4147e485d9","ContentHash":"24db399e8394d16ce6a1e273ab814d06c5c5bc12d736432b16ad76a54c457b4c","Payload":{"description":"If LLVM has the required functionality, emit the data needed to allow perf to profile functions generated by JIT. This writes out files to ~/.debug/jit/; the user is responsible for performing cleanup when desired. The default setting is off. Only superusers and users with the appropriate SET privilege can change this parameter at session start, and it cannot be changed at all within a session."}},"RequestedLocale":"zh-Hans","Fallback":true,"Versions":["11","12","13","14","15","16","17","18","19","20"],"Locales":["en"],"Signatures":null,"Spellings":null,"SQLState":null,"Evidence":null}
