postgresql/src
Heikki Linnakangas 3b558ac830 Treat 2PC commit/abort the same as regular xacts in recovery.
There were several oversights in recovery code where COMMIT/ABORT PREPARED
records were ignored:

* pg_last_xact_replay_timestamp() (wasn't updated for 2PC commits)
* recovery_min_apply_delay (2PC commits were applied immediately)
* recovery_target_xid (recovery would not stop if the XID used 2PC)

The first of those was reported by Sergiy Zuban in bug #11032, analyzed by
Tom Lane and Andres Freund. The bug was always there, but was masked before
commit d19bd29f07, because COMMIT PREPARED
always created an extra regular transaction that was WAL-logged.

Backpatch to all supported versions (older versions didn't have all the
features and therefore didn't have all of the above bugs).
2014-07-29 11:57:39 +03:00
..
backend Treat 2PC commit/abort the same as regular xacts in recovery. 2014-07-29 11:57:39 +03:00
bin Fix a performance problem in pg_dump's dump order selection logic. 2014-07-25 19:48:45 -04:00
common pgindent run for 9.4 2014-05-06 12:12:18 -04:00
include Treat 2PC commit/abort the same as regular xacts in recovery. 2014-07-29 11:57:39 +03:00
interfaces Translation updates 2014-07-21 01:07:36 -04:00
makefiles Flush a stray definition of $(DLLTOOL). 2014-02-11 12:59:48 -05:00
pl Translation updates 2014-07-21 01:07:36 -04:00
port Report success when Windows kill() emulation signals an exiting process. 2014-07-23 00:36:40 -04:00
template Revert to using --enable-auto-import in Cygwin builds. 2014-02-16 15:14:04 -05:00
test Fix TAP installcheck tests when current directory name contains spaces 2014-07-23 22:20:18 -04:00
timezone Reject out-of-range numeric timezone specifications. 2014-07-21 22:41:23 -04:00
tools MSVC: Substitute $(top_builddir) in REGRESS_OPTS. 2014-07-23 00:35:49 -04:00
tutorial pgindent run for 9.4 2014-05-06 12:12:18 -04:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
bcc32.mak Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04: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 Create libpgcommon, and move pg_malloc et al to it 2013-02-12 11:21:05 -03:00
Makefile.global.in Support vpath builds in TAP tests 2014-07-02 21:48:35 -04:00
Makefile.shlib Tweak position of $(DLL_DEFFILE) in shared-library link commands. 2014-02-12 11:22:23 -05:00
nls-global.mk Setup error context callback for transaction lock waits 2014-03-19 15:10:36 -03:00
win32.mak Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00