postgresql/src/backend
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
..
access If backup-end record is not seen, and we reach end of recovery from a 2011-08-10 09:22:49 +03:00
bootstrap Avoid index rebuild for no-rewrite ALTER TABLE .. ALTER TYPE. 2011-07-18 11:04:43 -04:00
catalog Allow per-column foreign data wrapper options. 2011-08-05 13:24:03 -04:00
commands Allow per-column foreign data wrapper options. 2011-08-05 13:24:03 -04:00
executor Avoid integer overflow when LIMIT + OFFSET >= 2^63. 2011-08-02 10:47:17 +03:00
foreign Clean up most -Wunused-but-set-variable warnings from gcc 4.6 2011-04-11 22:28:45 +03:00
lib Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
libpq Use clearer notation for getnameinfo() return handling 2011-08-09 18:30:32 +03:00
main Pgindent run before 9.1 beta2. 2011-06-09 14:32:50 -04:00
nodes Allow per-column foreign data wrapper options. 2011-08-05 13:24:03 -04:00
optimizer Avoid creating PlaceHolderVars immediately within PlaceHolderVars. 2011-08-09 11:34:20 -04:00
parser Allow per-column foreign data wrapper options. 2011-08-05 13:24:03 -04:00
po Fixed string in German translation that causes segfault. 2011-06-20 13:53:15 +02:00
port Measure WaitLatch's timeout parameter in milliseconds, not microseconds. 2011-08-09 18:52:29 -04:00
postmaster Measure WaitLatch's timeout parameter in milliseconds, not microseconds. 2011-08-09 18:52:29 -04:00
regex Pgindent run before 9.1 beta2. 2011-06-09 14:32:50 -04:00
replication Measure WaitLatch's timeout parameter in milliseconds, not microseconds. 2011-08-09 18:52:29 -04:00
rewrite Try to acquire relation locks in RangeVarGetRelid. 2011-07-08 22:19:30 -04:00
snowball Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
storage Documentation improvement and minor code cleanups for the latch facility. 2011-08-09 15:30:45 -04:00
tcop Avoid index rebuild for no-rewrite ALTER TABLE .. ALTER TYPE. 2011-07-18 11:04:43 -04:00
tsearch Pgindent run before 9.1 beta2. 2011-06-09 14:32:50 -04:00
utils Use clearer notation for getnameinfo() return handling 2011-08-09 18:30:32 +03:00
.gitignore Add gitignore for mingw/cygwin build outputs 2011-06-09 18:11:47 +02:00
common.mk Workaround for recursive make breakage 2011-01-13 09:32:06 +02:00
Makefile Fix symlink for errcodes.h so it works in VPATH builds from tarballs. 2011-06-22 13:08:08 -04:00
nls.mk Add the possibility to pass --flag arguments to xgettext calls 2011-06-27 00:37:21 +03:00