• Andres Freund's avatar
    Collect JIT instrumentation from workers. · 33001fd7
    Andres Freund authored
    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-
    33001fd7
jit.c 5.41 KB