{"Entry":{"collection":"guc","key":"jit_debugging_support","name":"jit_debugging_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 debugger.","to":"Register JIT-compiled functions with debugger."}},"from":"13","status":"changed","to":"14"},{"documentation_changed":true,"fields":{},"from":"14","status":"changed","to":"15"}],"content_hash":"c973f59c9eb93b33c622c01b997c906e11df4aed720226b22e118904c764694e","context":"","default_changed_in":[],"default_history":[{"from":"11","to":"19","value":"off"}],"editorial":{"advice":{"olap":"Long analytical runs can amplify jit_debugging_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_debugging_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_debugging_support at its upstream default. A small host has less spare CPU, disk, connection, and log capacity for developer instrumentation."},"mechanism":["jit_debugging_support registers generated JIT functions with GDB when LLVM and the platform provide the required listener interfaces. It improves symbol visibility for debugger sessions.","The value is fixed at backend start and does not enable JIT itself. Queries still need jit, a provider, and cost thresholds to generate code.","Registration adds developer instrumentation and is useful only while debugging JIT internals or generated code. It is not a query-performance feature. Its superuser-backend context fixes the value during connection startup and restricts who may set it."],"pitfalls":["Leaving jit_debugging_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_debugging_support","url":"https://www.postgresql.org/docs/19/runtime-config-developer.html#GUC-JIT-DEBUGGING-SUPPORT"},{"title":"PostgreSQL 19 release notes","url":"https://www.postgresql.org/docs/19/release-19.html"}],"related":["jit","jit_above_cost","jit_dump_bitcode","jit_profiling_support","jit_expressions"],"summary":"jit_debugging_support — Register JIT-compiled functions with debugger. 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.426493+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_debugging_support","last_version":"20","max_val":"","min_val":"","name":"jit_debugging_support","position":192,"present_in":["11","12","13","14","15","16","17","18","19","20"],"short_desc":"If LLVM has the required functionality, register generated functions with GDB.","short_desc_zh":"","source_rev":"english-manuals:6b8cb290a05aedbee34ce269c6e11f2fc103290687a9c8eed76445db23d27d04","unit":"","vartype":"bool"}},"Definition":{"Collection":"guc","Key":"jit_debugging_support","SourceDatabase":"center","Version":"18","SourceTable":"guc","SourceKey":"jit_debugging_support","SourceRevision":"english-manuals:6b8cb290a05aedbee34ce269c6e11f2fc103290687a9c8eed76445db23d27d04","Facts":{"boot_val":"off","category":"Developer Options","context":"superuser-backend","description":"If LLVM has the required functionality, register generated functions with GDB. This makes debugging easier. 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-DEBUGGING-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_debugging_support","short_desc":"Register JIT-compiled functions with debugger.","source":"pg-settings-source-snapshot","unit":null,"vartype":"bool"},"ManualEvidence":{"doc":{"anchor":"GUC-JIT-DEBUGGING-SUPPORT","file":"runtime-config-developer.html","lang":"en","sha256":"f5e7e39d176c642ac0799c87669ce2f6f60fcd97d109e290860ec74c36d7ecad","slug":"18"}},"MeasuredEvidence":{"metadata_version":"18"}},"Text":{"Collection":"guc","Key":"jit_debugging_support","SourceDatabase":"center","Version":"18","Locale":"en","Title":"jit_debugging_support","Summary":"If LLVM has the required functionality, register generated functions with GDB. This makes debugging easier. 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, register generated functions with GDB. This makes debugging easier. 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:6b8cb290a05aedbee34ce269c6e11f2fc103290687a9c8eed76445db23d27d04","ContentHash":"9d8ea7d6fab079d31b33d91e9e6846c53e4141672fa695cd5988eb4ed1f0f2df","Payload":{"description":"If LLVM has the required functionality, register generated functions with GDB. This makes debugging easier. 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}
