diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2014-04-24 13:29:48 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2014-04-24 13:29:56 -0400 |
commit | 12e41a5d70d5a96ed5859e7f0cd6047329b3d8d7 (patch) | |
tree | 84be5d9cd28fadedbce0aea84f5b05ecd004bf1c /src/backend/access/gist/gistxlog.c | |
parent | cb651b624dabb6d0617ea861aa80c6ec7b76eb34 (diff) | |
download | postgresql-12e41a5d70d5a96ed5859e7f0cd6047329b3d8d7.tar.gz postgresql-12e41a5d70d5a96ed5859e7f0cd6047329b3d8d7.zip |
Reset pg_stat_activity.xact_start during PREPARE TRANSACTION.
Once we've completed a PREPARE, our session is not running a transaction,
so its entry in pg_stat_activity should show xact_start as null, rather
than leaving the value as the start time of the now-prepared transaction.
I think possibly this oversight was triggered by faulty extrapolation
from the adjacent comment that says PrepareTransaction should not call
AtEOXact_PgStat, so tweak the wording of that comment.
Noted by Andres Freund while considering bug #10123 from Maxim Boguk,
although this error doesn't seem to explain that report.
Back-patch to all active branches.
Diffstat (limited to 'src/backend/access/gist/gistxlog.c')
0 files changed, 0 insertions, 0 deletions