instrumentation: Drop INSTR_TIME_SET_CURRENT_LAZY macro

Andres Freund <andres@anarazel.de>

Commit: 9d6294c09ed0015e0f16b518e6e53000c856dd01
Author: Andres Freund <andres@anarazel.de>
Date: 2026-02-26T15:39:29Z
instrumentation: Drop INSTR_TIME_SET_CURRENT_LAZY macro

This macro had exactly one user in InstrStartNode, and the caller can
instead use INSTR_TIME_IS_ZERO / INSTR_TIME_SET_CURRENT directly.

This supports a future change that intends to modify the time source being
used in the InstrStartNode case.

Author: Lukas Fittl <lukas@fittl.com>
Reviewed-by: Andres Freund <andres@anarazel.de>
Discussion: https://postgr.es/m/CAP53Pkx1bK1FB71_nBqYmzvSSXnp_MbE0ZDnU+baPJF6Ud2WDA@mail.gmail.com

Files

PathChange+/−
src/backend/executor/instrument.c modified +7 −3
src/include/portability/instr_time.h modified +0 −6

Discussion