forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitea9ac77
committed
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, ratherthan leaving the value as the start time of the now-prepared transaction.I think possibly this oversight was triggered by faulty extrapolationfrom the adjacent comment that says PrepareTransaction should not callAtEOXact_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.1 parentf9cd2b7 commitea9ac77
1 file changed
+2
-1
lines changedLines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2247 | 2247 |
| |
2248 | 2248 |
| |
2249 | 2249 |
| |
2250 |
| - | |
| 2250 | + | |
2251 | 2251 |
| |
| 2252 | + | |
2252 | 2253 |
| |
2253 | 2254 |
| |
2254 | 2255 |
| |
|
0 commit comments
Comments
(0)