diff options
author | Andres Freund | 2022-10-14 18:11:33 +0000 |
---|---|---|
committer | Andres Freund | 2022-10-14 18:11:33 +0000 |
commit | 309b2cf2433d1b1454636595600f160b41871ff5 (patch) | |
tree | 9e3bec0d23db057d5bfa70a70129847cea3b39a5 /src/test/regress/sql/stats.sql | |
parent | db1b931a4ee885ebd27bb5b335c1e461ccc34bbe (diff) |
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 <[email protected]>
Reviewed-by: Andres Freund <[email protected]>
Reviewed-by: Vik Fearing <[email protected]>
Discussion: https://postgr.es/m/20220906155325.an3xesq5o3fq36gt%40awork3.anarazel.de
Diffstat (limited to 'src/test/regress/sql/stats.sql')
0 files changed, 0 insertions, 0 deletions