postgresql/src/backend/access
Heikki Linnakangas 8049839613 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:58:17 +03:00
..
common Remove tabs after spaces in C comments 2014-05-06 11:26:25 -04:00
gin Protect against torn pages when deleting GIN list pages. 2014-05-08 14:44:06 +03:00
gist Remove tabs after spaces in C comments 2014-05-06 11:26:25 -04:00
hash Remove tabs after spaces in C comments 2014-05-06 11:26:25 -04:00
heap Remove tabs after spaces in C comments 2014-05-06 11:26:25 -04:00
index Remove tabs after spaces in C comments 2014-05-06 11:26:25 -04:00
nbtree Use 0-based numbering in comments about backup blocks. 2014-05-19 13:27:44 +03:00
transam Treat 2PC commit/abort the same as regular xacts in recovery. 2014-07-29 11:58:17 +03:00
Makefile Refactor backend makefiles to remove lots of duplicate code 2008-02-19 10:30:09 +00:00