From: Daniel Gustafsson <dgustafsson@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add JIT deform_counter
Date: Fri, 08 Sep 2023 13:19:43 +0000
Message-ID: <E1qebOh-002xMR-8y@gemulon.postgresql.org> (raw)
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
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/5a3423ad8ee171fbf08317917981effe47d211eb
Modified Files
--------------
contrib/pg_stat_statements/Makefile | 1 +
contrib/pg_stat_statements/meson.build | 1 +
.../pg_stat_statements--1.10--1.11.sql | 69 ++++++++++++++++++++++
contrib/pg_stat_statements/pg_stat_statements.c | 35 ++++++++++-
.../pg_stat_statements/pg_stat_statements.control | 2 +-
doc/src/sgml/jit.sgml | 2 +-
doc/src/sgml/pgstatstatements.sgml | 19 ++++++
src/backend/commands/explain.c | 12 +++-
src/backend/jit/jit.c | 1 +
src/backend/jit/llvm/llvmjit_expr.c | 6 ++
src/include/jit/jit.h | 3 +
11 files changed, 145 insertions(+), 6 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-committers@postgresql.org
Cc: dgustafsson@postgresql.org, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Add JIT deform_counter
In-Reply-To: <E1qebOh-002xMR-8y@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox