postgresql/src
Heikki Linnakangas 41f9ffd928 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 requires re-initdb, because of a new field added to the control file.
2011-08-10 09:22:49 +03:00
..
backend If backup-end record is not seen, and we reach end of recovery from a 2011-08-10 09:22:49 +03:00
bin Teach psql to display the comments on SQL/MED objects in verbose mode. 2011-08-08 16:30:39 -04:00
include If backup-end record is not seen, and we reach end of recovery from a 2011-08-10 09:22:49 +03:00
interfaces Tweak PQresStatus() to avoid a clang compiler warning. 2011-08-05 12:06:29 -04:00
makefiles Add some environment checks prior to sepgsql regression testing. 2011-07-25 10:51:02 -04:00
pl Restore the primacy of postgres.h in plpython.c. 2011-08-04 13:05:32 -04:00
port Make pgbench use erand48() rather than random(). 2011-08-03 16:26:40 -04:00
template Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
test Fix nested PlaceHolderVar expressions that appear only in targetlists. 2011-08-09 00:50:07 -04:00
timezone Replace printf format %i by %d 2011-07-26 22:54:29 +03:00
tools Blind attempt at fixing isolation_tester on Win32 2011-07-13 01:10:26 -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:12 -04:00
Makefile.shlib Use single quotes in preference to double quotes for protecting pathnames. 2011-06-15 21:45:23 -04:00
nls-global.mk Add the possibility to pass --flag arguments to xgettext calls 2011-06-27 00:37:21 +03:00
win32.mak Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00