instrumentation: Rename INSTR_TIME_LT macro to INSTR_TIME_GT

Andres Freund <andres@anarazel.de>

Commit: 3218825271bd5ea3921ecd18e373bc76947c70bc
Author: Andres Freund <andres@anarazel.de>
Date: 2026-02-26T15:38:59Z
instrumentation: Rename INSTR_TIME_LT macro to INSTR_TIME_GT

This was incorrectly named "LT" for "larger than" in e5a5e0a90750d66, but
that is against existing conventions, where "LT" means "less than".
Clarify by using "GT" for "greater than" in macro name, and add a missing
comment at the top of instr_time.h to note the macro's existence.

Reported by: Peter Smith <smithpb2250@gmail.com>
Author: Lukas Fittl <lukas@fittl.com>
Reviewed-by: Andres Freund <andres@anarazel.de>
Discussion: https://postgr.es/m/CAHut%2BPut94CTpjQsqOJHdHkgJ2ZXq%2BqVSfMEcmDKLiWLW-hPfA%40mail.gmail.com

Files

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

Discussion