aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/pgstatfuncs.c
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2022-10-14 11:11:33 -0700
committerAndres Freund <andres@anarazel.de>2022-10-14 11:11:33 -0700
commit309b2cf2433d1b1454636595600f160b41871ff5 (patch)
tree9e3bec0d23db057d5bfa70a70129847cea3b39a5 /src/backend/utils/adt/pgstatfuncs.c
parentdb1b931a4ee885ebd27bb5b335c1e461ccc34bbe (diff)
downloadpostgresql-309b2cf2433d1b1454636595600f160b41871ff5.tar.gz
postgresql-309b2cf2433d1b1454636595600f160b41871ff5.zip
Have GetCurrentTransactionStopTimestamp() set xactStopTimestamp if unset
Previously GetCurrentTransactionStopTimestamp() computed a new timestamp whenever xactStopTimestamp was unset and xactStopTimestamp was only set when a commit or abort record was written. An upcoming patch will add additional calls to GetCurrentTransactionStopTimestamp() from pgstats. To avoid computing timestamps multiple times, set xactStopTimestamp in GetCurrentTransactionStopTimestamp() if not already set. Author: Dave Page <dpage@pgadmin.org> Reviewed-by: Andres Freund <andres@anarazel.de> Reviewed-by: Vik Fearing <vik@postgresfriends.org> Discussion: https://postgr.es/m/20220906155325.an3xesq5o3fq36gt%40awork3.anarazel.de
Diffstat (limited to 'src/backend/utils/adt/pgstatfuncs.c')
0 files changed, 0 insertions, 0 deletions