postgres-github.git / summary / log / commit / refs

commit    7d9b74df53e9268bd638274f1415ebfeecf0de51
Author:   Andres Freund <andres@anarazel.de>
Date:     Sun Apr 05 20:47:12 2026 +0000

    instrumentation: Separate trigger logic from other uses
    
    Introduce TriggerInstrumentation to capture trigger timing and firings
    (previously counted in "ntuples"), to aid a future refactoring that
    splits out all Instrumentation fields beyond timing and WAL/buffers into
    more specific structs.
    
    In passing, drop the "n" argument to InstrAlloc, as all remaining callers need
    exactly one Instrumentation struct.  The duplication between InstrAlloc() and
    InstrInit(), as well as the conditional initialization of async_mode will be
    addressed in a subsequent commit.
    
    Author: Lukas Fittl <lukas@fittl.com>
    Reviewed-by: Andres Freund <andres@anarazel.de>
    Discussion: https://www.postgresql.org/message-id/flat/CAP53PkzdBK8VJ1fS4AZ481LgMN8f9mJiC39ZRHqkFUSYq6KWmg@mail.gmail.com

[parent: 6c7bce28c83f]