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:30:00 -0400 |
commit | ea9ac774198ad097d2d322f81c39bd8cdfa8b04d (patch) | |
tree | f6fa3c6441080ab03a4073015c5dc7caaa7b084b /src/backend/executor/nodeFunctionscan.c | |
parent | f9cd2b7824f627069f81cbb47d767af039d66a0d (diff) | |
download | postgresql-ea9ac774198ad097d2d322f81c39bd8cdfa8b04d.tar.gz postgresql-ea9ac774198ad097d2d322f81c39bd8cdfa8b04d.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/executor/nodeFunctionscan.c')
0 files changed, 0 insertions, 0 deletions