{"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"}],"derived_content_hash":"ceed840caa46059e5e20d7c4a6b37f2cb07be6884d93fd3bed3f44654fd38126","documentation_refresh":{"batch":"20261113","original_source_rev":"wiki-repair-20261023:d1aab9aefddfe22567f64be262a34eeb213a48bc012db89918aa725acb70cd7c","versions":{"14":"14.25","15":"15.20","16":"16.16","17":"17.12","18":"18.7","19":"19rc2"}},"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"],"repair_provenance":{"original_source_revision":"english-manuals:b56dbb21a3bbd498be5fa747981059fee14659e7c2e660a11d829b4147e485d9","receipt_sha256":"5deb217898937c7a7731a9b574aad4a25d06bcb1a414c4981556b3fc593c4e24","repair":"wiki-repair-20261023"},"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":"wiki-repair-20261023:d1aab9aefddfe22567f64be262a34eeb213a48bc012db89918aa725acb70cd7c","unit":"","vartype":"bool"}},"Definition":{"Collection":"guc","Key":"jit_profiling_support","SourceDatabase":"center","Version":"18","SourceTable":"guc","SourceKey":"jit_profiling_support","SourceRevision":"wiki-repair-20261023:d1aab9aefddfe22567f64be262a34eeb213a48bc012db89918aa725acb70cd7c","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.","description_zh":"如果 LLVM 具有所需的功能，则输出让 perf 对 JIT 生成的函数进行性能分析所需的数据。这会将文件写入 ~/.debug/jit/；用户应在需要时自行清理。默认设置为 off。只有超级用户和具有适当 SET 权限的用户才能在会话开始时更改此参数，并且在会话内完全不能更改它。","description_zh_html":"\u003cp\u003e\n        如果 LLVM 具有所需的功能，则输出让 \u003cspan class=\"productname\"\u003eperf\u003c/span\u003e 对 JIT 生成的函数进行性能分析所需的数据。这会将文件写入 \u003ccode class=\"filename\"\u003e~/.debug/jit/\u003c/code\u003e；用户应在需要时自行清理。默认设置为 \u003ccode class=\"literal\"\u003eoff\u003c/code\u003e。只有超级用户和具有适当 \u003ccode class=\"literal\"\u003eSET\u003c/code\u003e 权限的用户才能在会话开始时更改此参数，并且在会话内完全不能更改它。\n       \u003c/p\u003e","doc":{"anchor":"GUC-JIT-PROFILING-SUPPORT","file":"runtime-config-developer.html","lang":"en","sha256":"a3f6a107ed6ba4edaf6df03e52f4a469bd09350d545e4ff419e62844025ec1cf","slug":"18"},"doc_html":"\u003cp\u003e\n        If LLVM has the required functionality, emit the data needed to allow\n        \u003cspan class=\"productname\"\u003eperf\u003c/span\u003e to profile functions generated by JIT.\n        This writes out files to \u003ccode class=\"filename\"\u003e~/.debug/jit/\u003c/code\u003e; the\n        user is responsible for performing cleanup when desired.\n        The default setting is \u003ccode class=\"literal\"\u003eoff\u003c/code\u003e.\n        Only superusers and users with the appropriate \u003ccode class=\"literal\"\u003eSET\u003c/code\u003e\n        privilege can change this parameter at session start,\n        and it cannot be changed at all within a session.\n       \u003c/p\u003e","doc_same_as":"","documentation_revision":{"inputs":[{"file":"runtime-config-developer.html","kind":"same-version-reviewed-manual","locale":"en","sha256":"a3f6a107ed6ba4edaf6df03e52f4a469bd09350d545e4ff419e62844025ec1cf","version":"18.7"},{"file":"runtime-config-developer.html","kind":"same-version-reviewed-manual","locale":"zh-Hans","sha256":"e7e22aa5738a1d376b84af1adca796c5e14746266733f925eb50c3ef86a50655","version":"18.7"}],"release":"18.7","runtime_remeasured":false,"source_revision":"pgdoc:b9f0e7232f60f380d642ac9b99226606c254b552"},"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","translation_provenance":{"inputs":[{"kind":"current-pgdoc-translation","path":"/Users/vonng/pgsty/pgdoc/zh/18/html/runtime-config-developer.html","sha256":"3c08bf624188bbb0733dc7854e61c0c251c2578311ac3dc8fa626ab21b7911d1"}],"kind":"same-version-pgdoc","locale":"zh-Hans","source_revision":"b1b500221dbe5437cfca004d6b04d3f6e422765d","version":"18"},"unit":null,"vartype":"bool","zh_from":"same-version-manual"},"ManualEvidence":{"doc":{"anchor":"GUC-JIT-PROFILING-SUPPORT","file":"runtime-config-developer.html","lang":"en","sha256":"a3f6a107ed6ba4edaf6df03e52f4a469bd09350d545e4ff419e62844025ec1cf","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\u003e\n        If LLVM has the required functionality, emit the data needed to allow\n        \u003cspan\u003eperf\u003c/span\u003e to profile functions generated by JIT.\n        This writes out files to \u003ccode\u003e~/.debug/jit/\u003c/code\u003e; the\n        user is responsible for performing cleanup when desired.\n        The default setting is \u003ccode\u003eoff\u003c/code\u003e.\n        Only superusers and users with the appropriate \u003ccode\u003eSET\u003c/code\u003e\n        privilege can change this parameter at session start,\n        and it cannot be changed at all within a session.\n       \u003c/p\u003e","SourceRevision":"wiki-repair-20261023:d1aab9aefddfe22567f64be262a34eeb213a48bc012db89918aa725acb70cd7c","ContentHash":"2b088b5c8e62cc6996988b042d1ab2a6ca30a41bfe2f04bc67e21134e21bd5c7","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":"en","Fallback":false,"Versions":["11","12","13","14","15","16","17","18","19","20"],"Locales":["en","zh-Hans"],"Signatures":null,"Spellings":null,"SQLState":null,"Evidence":null}
