postgresql/src
Robert Haas f267c1c244 Fix possible pg_basebackup failure on standby with "include WAL".
If a restartpoint flushed no dirty buffers, it could fail to update
the minimum recovery point, leading to a minimum recovery point prior
to the starting REDO location.  perform_base_backup() would interpret
that as meaning that no WAL files at all needed to be included in the
backup, failing an internal sanity check.  To fix, have restartpoints
always update the minimum recovery point to just after the checkpoint
record itself, so that the file (or files) containing the checkpoint
record will always be included in the backup.

Code by Amit Kapila, per a design suggestion by me, with some
additional work on the code comment by me.  Test case by Michael
Paquier.  Report by Kyotaro Horiguchi.
2016-10-27 11:19:51 -04:00
..
backend Fix possible pg_basebackup failure on standby with "include WAL". 2016-10-27 11:19:51 -04:00
bin pg_dump: Simplify internal archive version handling 2016-10-25 17:02:22 -04:00
common Rename "pg_xlog" directory to "pg_wal". 2016-10-20 11:32:18 -04:00
fe_utils Teach appendShellString() to not quote strings containing "-". 2016-09-06 14:53:31 -04:00
include Avoid using a C++ keyword in header file 2016-10-26 22:41:56 -04:00
interfaces Remove a comment which is now incorrect. 2016-10-20 10:24:51 -04:00
makefiles Remove "sco" and "unixware" ports. 2016-10-11 11:26:04 -04:00
pl Remove platform-dependent PL/python test case. 2016-10-26 17:09:18 +03:00
port Allow pg_basebackup to stream transaction log in tar mode 2016-10-23 15:23:11 +02:00
template Remove "sco" and "unixware" ports. 2016-10-11 11:26:04 -04:00
test Fix possible pg_basebackup failure on standby with "include WAL". 2016-10-27 11:19:51 -04:00
timezone Fix not-HAVE_SYMLINK code in zic.c. 2016-10-26 13:40:41 -04:00
tools Revert "Replace PostmasterRandom() with a stronger way of generating randomness." 2016-10-18 16:28:23 +03:00
tutorial Update copyright for 2016 2016-01-02 13:33:40 -05: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
Makefile Install TAP test infrastructure so it's available for extension testing. 2016-09-23 15:50:00 -04:00
Makefile.global.in Remove "sco" and "unixware" ports. 2016-10-11 11:26:04 -04:00
Makefile.shlib Remove "sco" and "unixware" ports. 2016-10-11 11:26:04 -04:00
nls-global.mk nls-global.mk: search build dir for source files, too 2016-06-07 18:55:18 -04:00
win32.mak Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00