Add JIT deform_counter
Daniel Gustafsson <dgustafsson@postgresql.org>
Add JIT deform_counter generation_counter includes time spent on both JIT:ing expressions and tuple deforming which are configured independently via options jit_expressions and jit_tuple_deforming. As they are combined in the same counter it's not apparent what fraction of time the tuple deforming takes. This adds deform_counter dedicated to tuple deforming, which allows seeing more directly the influence jit_tuple_deforming is having on the query. The counter is exposed in EXPLAIN and pg_stat_statements bumpin pg_stat_statements to 1.11. Author: Dmitry Dolgov <9erthalion6@gmail.com> Reviewed-by: Pavel Stehule <pavel.stehule@gmail.com> Reviewed-by: Daniel Gustafsson <daniel@yesql.se> Discussion: https://postgr.es/m/20220612091253.eegstkufdsu4kfls@erthalion.local
Files
| Path | Change | +/− |
|---|---|---|
| contrib/pg_stat_statements/Makefile | modified | +1 −0 |
| contrib/pg_stat_statements/meson.build | modified | +1 −0 |
| contrib/pg_stat_statements/pg_stat_statements--1.10--1.11.sql | added | +69 −0 |
| contrib/pg_stat_statements/pg_stat_statements.c | modified | +33 −2 |
| contrib/pg_stat_statements/pg_stat_statements.control | modified | +1 −1 |
| doc/src/sgml/jit.sgml | modified | +1 −1 |
| doc/src/sgml/pgstatstatements.sgml | modified | +19 −0 |
| src/backend/commands/explain.c | modified | +10 −2 |
| src/backend/jit/jit.c | modified | +1 −0 |
| src/backend/jit/llvm/llvmjit_expr.c | modified | +6 −0 |
| src/include/jit/jit.h | modified | +3 −0 |
Documentation touched
Discussion
- [RFC] Add jit deform_counter 25 messages · 2022-06-12 → 2023-10-13