postgresql/src
Heikki Linnakangas 59dd4790e2 If backup-end record is not seen, and we reach end of recovery from a
streamed backup, throw an error and refuse to start up. The restore has not
finished correctly in that case and the data directory is possibly corrupt.
We already errored out in case of archive recovery, but could not during
crash recovery because we couldn't distinguish between the case that
pg_start_backup() was called and the database then crashed (must not error,
data is OK), and the case that we're restoring from a backup and not all
the needed WAL was replayed (data can be corrupt).

To distinguish those cases, add a line to backup_label to indicate
whether the backup was taken with pg_start/stop_backup(), or by streaming
(ie. pg_basebackup).

This is a different implementation than what I committed to 9.2 a week ago.
That implementation was not back-patchable because it required re-initdb.

Fujii Masao
2011-08-17 11:41:29 +03:00
..
backend If backup-end record is not seen, and we reach end of recovery from a 2011-08-17 11:41:29 +03:00
bin Move \r out of translatable strings 2011-08-17 10:55:22 +03:00
include Fix race condition in relcache init file invalidation. 2011-08-16 13:12:03 -04:00
interfaces Fix previous patch so it also works if not USE_SSL (mea culpa). 2011-07-24 23:29:10 -04:00
makefiles Use single quotes in preference to double quotes for protecting pathnames. 2011-06-15 21:45:50 -04:00
pl Replace errdetail("%s", ...) with errdetail_internal("%s", ...). 2011-07-16 14:22:35 -04:00
port Unify spelling of "canceled", "canceling", "cancellation" 2011-07-02 23:30:01 +03:00
template Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
test Adjust regression tests for error message change 2011-08-15 17:29:52 +03:00
timezone Pgindent run before 9.1 beta2. 2011-06-09 14:32:50 -04:00
tools Back-patch Fix bat file quoting of %ENV from commit 19b7fac8. 2011-07-04 10:44:07 -04:00
tutorial Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
bcc32.mak Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02: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 Fix some oversights in distprep and maintainer-clean targets. 2011-03-10 00:04:05 -05:00
Makefile.global.in Make distprep and *clean build targets recurse into all subdirectories. 2011-07-03 13:55:27 -04:00
Makefile.shlib Use single quotes in preference to double quotes for protecting pathnames. 2011-06-15 21:45:50 -04:00
nls-global.mk Fix makefile logic to not break the build when xgettext is missing 2010-10-14 23:16:46 +03:00
win32.mak Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00