postgresql/contrib/auto_explain
Andres Freund e5a5e0a907 instrumentation: Keep time fields as instrtime, convert in callers
Previously the instrumentation logic always converted to seconds, only for
many of the callers to do unnecessary division to get to milliseconds. As an
upcoming refactoring will split the Instrumentation struct, utilize instrtime
always to keep things simpler. It's also a bit faster to not have to first
convert to a double in functions like InstrEndLoop(), InstrAggNode().

Author: Lukas Fittl <lukas@fittl.com>
Reviewed-by: Andres Freund <andres@anarazel.de>
Discussion: https://postgr.es/m/CAP53PkzZ3UotnRrrnXWAv=F4avRq9MQ8zU+bxoN9tpovEu6fGQ@mail.gmail.com
2026-01-09 13:38:00 -05:00
..
expected Allow resetting unknown custom GUCs with reserved prefixes. 2025-08-01 16:52:11 -05:00
sql Allow resetting unknown custom GUCs with reserved prefixes. 2025-08-01 16:52:11 -05:00
t Update copyright for 2026 2026-01-01 13:24:10 -05:00
.gitignore Add a simple test for contrib/auto_explain. 2021-01-24 14:59:33 -05:00
auto_explain.c instrumentation: Keep time fields as instrtime, convert in callers 2026-01-09 13:38:00 -05:00
Makefile Allow resetting unknown custom GUCs with reserved prefixes. 2025-08-01 16:52:11 -05:00
meson.build Update copyright for 2026 2026-01-01 13:24:10 -05:00