postgresql/src
Tom Lane ea9ac77419 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.
2014-04-24 13:30:00 -04:00
..
backend Reset pg_stat_activity.xact_start during PREPARE TRANSACTION. 2014-04-24 13:30:00 -04:00
bin Use AF_UNSPEC not PF_UNSPEC in getaddrinfo calls. 2014-04-16 13:21:31 -04:00
include Fix incorrect pg_proc.proallargtypes entries for two built-in functions. 2014-04-23 21:21:12 -04:00
interfaces Fix unused-variable warning on Windows. 2014-04-17 16:12:38 -04:00
makefiles Don't use deprecated dllwrap on Cygwin. 2014-02-01 16:13:46 -05:00
pl Fix refcounting bug in PLy_modify_tuple(). 2014-03-26 16:41:38 -04:00
port Fix assorted issues in client host name lookup. 2014-04-02 17:11:31 -04:00
template Remove BSD/OS (BSDi) port. There are no known users upgrading to 2012-05-03 10:58:44 -04:00
test Revert "Secure Unix-domain sockets of "make check" temporary clusters." 2014-03-29 03:14:48 -04:00
timezone Update time zone data files to tzdata release 2014a. 2014-03-15 13:36:32 -04:00
tools Attempt to get plpython regression tests working again for MSVC builds. 2014-04-16 13:44:34 -04:00
tutorial Modernize string literal syntax in tutorial example. 2013-01-19 17:20:56 -05:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
bcc32.mak Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
DEVELOPERS Replace a couple of references to files that no longer exist in the source 2009-05-04 08:08:47 +00:00
Makefile Fix some oversights in distprep and maintainer-clean targets. 2011-03-10 00:04:05 -05:00
Makefile.global.in Revert "Backpatch pgxs vpath build and installation fixes (v2)" 2013-10-07 22:37:26 -04:00
Makefile.shlib fix whitespace 2014-02-01 16:30:18 -05:00
nls-global.mk Lots of doc corrections. 2012-04-23 22:43:09 -04:00
win32.mak Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00