postgresql/src/backend
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
..
access Treat 2PC commit/abort the same as regular xacts in recovery. 2014-07-29 11:57:39 +03:00
bootstrap Revert "Fix bogus %name-prefix option syntax in all our Bison files." 2014-05-28 19:21:01 -04:00
catalog Update SQL features list 2014-07-21 00:42:32 -04:00
commands Reject out-of-range numeric timezone specifications. 2014-07-21 22:41:23 -04:00
executor Fix bug with whole-row references to append subplans. 2014-07-11 19:12:38 -04:00
foreign Update copyright for 2014 2014-01-07 16:05:30 -05:00
lib pgindent run for 9.4 2014-05-06 12:12:18 -04:00
libpq Rename lo_create(oid, bytea) to lo_from_bytea(). 2014-06-12 15:39:16 -04:00
main Make fallback implementation of pg_memory_barrier() work. 2014-05-17 18:29:46 -04:00
nodes Partial fix for dropped columns in functions returning composite. 2014-07-19 14:29:00 -04:00
optimizer Re-enable error for "SELECT ... OFFSET -1". 2014-07-22 13:30:09 -04:00
parser Revert "Fix bogus %name-prefix option syntax in all our Bison files." 2014-05-28 19:21:01 -04:00
po Translation updates 2014-07-21 01:07:36 -04:00
port Fix weird spacing in error message. 2014-06-18 15:44:38 -04:00
postmaster Add missing serial commas 2014-07-15 08:25:27 -04:00
regex Fix two low-probability memory leaks in regular expression parsing. 2014-07-18 13:00:39 -04:00
replication Properly remove ephemeral replication slots after a crash restart. 2014-07-24 14:44:41 +02:00
rewrite Add some errdetail to checkRuleResultList(). 2014-07-02 12:31:27 -04:00
snowball Fix ancient encoding error in hungarian.stop. 2014-06-10 22:48:31 -04:00
storage Fix obsolete statement in smgr/README. 2014-07-28 16:30:35 -04:00
tcop Set the process latch when processing recovery conflict interrupts. 2014-06-03 14:02:54 +02:00
tsearch pgindent run for 9.4 2014-05-06 12:12:18 -04:00
utils Allow empty string object keys in json_object(). 2014-07-22 11:25:40 -04:00
.gitignore Add gitignore for mingw/cygwin build outputs 2011-06-09 18:11:47 +02:00
common.mk Remove maintainer-check target, fold into normal build 2013-10-10 20:11:56 -04:00
Makefile Get rid of use of dlltool in Mingw builds. 2014-02-11 12:56:20 -05:00
nls.mk Add libpgcommon to backend gettext source files 2013-10-19 13:49:05 -04:00