postgresql/src/include
Heikki Linnakangas de88ec6bf4 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:09 +03:00
..
access Treat 2PC commit/abort the same as regular xacts in recovery. 2014-07-29 11:58:09 +03:00
bootstrap Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
catalog Remove tabs after spaces in C comments 2014-05-06 11:26:26 -04:00
commands Fix REASSIGN OWNED for text search objects 2014-07-15 13:24:07 -04:00
executor Avoid leaking memory while evaluating arguments for a table function. 2014-06-19 22:13:54 -04:00
foreign pgindent run before PG 9.1 beta 1. 2011-04-10 11:42:00 -04:00
lib Remove tabs after spaces in C comments 2014-05-06 11:26:26 -04:00
libpq Remove tabs after spaces in C comments 2014-05-06 11:26:26 -04:00
mb Remove tabs after spaces in C comments 2014-05-06 11:26:26 -04:00
nodes Avoid leaking memory while evaluating arguments for a table function. 2014-06-19 22:13:54 -04:00
optimizer Fix generation of MergeAppend plans for optimized min/max on expressions. 2013-11-07 13:13:47 -05:00
parser Remove tabs after spaces in C comments 2014-05-06 11:26:26 -04:00
port Remove tabs after spaces in C comments 2014-05-06 11:26:26 -04:00
portability Remove tabs after spaces in C comments 2014-05-06 11:26:26 -04:00
postmaster Remove tabs after spaces in C comments 2014-05-06 11:26:26 -04:00
regex Remove tabs after spaces in C comments 2014-05-06 11:26:26 -04:00
replication Remove tabs after spaces in C comments 2014-05-06 11:26:26 -04:00
rewrite Avoid getting more than AccessShareLock when deparsing a query. 2014-03-06 19:31:16 -05:00
snowball Remove tabs after spaces in C comments 2014-05-06 11:26:26 -04:00
storage Remove tabs after spaces in C comments 2014-05-06 11:26:26 -04:00
tcop Remove tabs after spaces in C comments 2014-05-06 11:26:26 -04:00
tsearch Predict integer overflow to avoid buffer overruns. 2014-02-17 09:33:37 -05:00
utils Remove tabs after spaces in C comments 2014-05-06 11:26:26 -04:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
c.h Remove tabs after spaces in C comments 2014-05-06 11:26:26 -04:00
fmgr.h Remove tabs after spaces in C comments 2014-05-06 11:26:26 -04:00
funcapi.h Remove tabs after spaces in C comments 2014-05-06 11:26:26 -04:00
getaddrinfo.h Fix assorted issues in client host name lookup. 2014-04-02 17:11:34 -04:00
getopt_long.h Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
Makefile Fix server header file installation with vpath builds 2011-11-10 20:54:50 +02:00
miscadmin.h Remove tabs after spaces in C comments 2014-05-06 11:26:26 -04:00
pg_config.h.in Add mkdtemp() to libpgport. 2014-06-14 09:41:18 -04:00
pg_config.h.win32 Stamp 9.1.14. 2014-07-21 15:14:13 -04:00
pg_config_manual.h Remove tabs after spaces in C comments 2014-05-06 11:26:26 -04:00
pg_trace.h Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
pgstat.h Remove tabs after spaces in C comments 2014-05-06 11:26:26 -04:00
pgtime.h Fix some odd behaviors when using a SQL-style simple GMT offset timezone. 2013-11-01 12:13:29 -04:00
port.h Add mkdtemp() to libpgport. 2014-06-14 09:41:18 -04:00
postgres.h Remove tabs after spaces in C comments 2014-05-06 11:26:26 -04:00
postgres_ext.h Remove tabs after spaces in C comments 2014-05-06 11:26:26 -04:00
postgres_fe.h Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
rusagestub.h Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
windowapi.h Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00