mirror of
https://github.com/postgres/postgres.git
synced 2025-08-25 20:23:07 +03:00
Collect JIT instrumentation from workers.
Previously, when using parallel query, EXPLAIN (ANALYZE)'s JIT compilation timings did not include the overhead from doing so on the workers. Fix that. We do so by simply aggregating the cost of doing JIT compilation on workers and the leader together. Arguably that's not quite accurate, because the total time spend doing so is spent in parallel - but it's hard to do much better. For additional detail, when VERBOSE is specified, the stats for workers are displayed separately. Author: Amit Khandekar and Andres Freund Discussion: https://postgr.es/m/CAJ3gD9eLrz51RK_gTkod+71iDcjpB_N8eC6vU2AW-VicsAERpQ@mail.gmail.com Backpatch: 11-
This commit is contained in:
@@ -27,6 +27,7 @@ typedef struct ParallelExecutorInfo
|
||||
ParallelContext *pcxt; /* parallel context we're using */
|
||||
BufferUsage *buffer_usage; /* points to bufusage area in DSM */
|
||||
SharedExecutorInstrumentation *instrumentation; /* optional */
|
||||
struct SharedJitInstrumentation *jit_instrumentation; /* optional */
|
||||
dsa_area *area; /* points to DSA area in DSM */
|
||||
dsa_pointer param_exec; /* serialized PARAM_EXEC parameters */
|
||||
bool finished; /* set true by ExecParallelFinish */
|
||||
|
Reference in New Issue
Block a user