postgresql/src
Heikki Linnakangas 1e78d81e88 Don't open a WAL segment for writing at end of recovery.
Since commit ba94518a, we used XLogFileOpen to open the next segment for
writing, but if the end-of-recovery happens exactly at a segment boundary,
the new segment might not exist yet. (Before ba94518a, XLogFileOpen was
correct, because we would open the previous segment if the switch happened
at the boundary.)

Instead of trying to create it if necessary, it's simpler to not bother
opening the segment at all. XLogWrite() will open or create it soon anyway,
after writing the checkpoint or end-of-recovery record.

Reported by Andres Freund.
2015-01-07 16:20:20 +02:00
..
backend Don't open a WAL segment for writing at end of recovery. 2015-01-07 16:20:20 +02:00
bin Update copyright for 2015 2015-01-06 11:43:47 -05:00
common Update copyright for 2015 2015-01-06 11:43:47 -05:00
include Update copyright for 2015 2015-01-06 11:43:47 -05:00
interfaces Update copyright for 2015 2015-01-06 11:43:47 -05:00
makefiles Revert haphazard pgxs makefile changes 2014-12-04 08:07:59 -05:00
pl Fix thinko in plpython error message 2015-01-06 15:16:29 -03:00
port Update copyright for 2015 2015-01-06 11:43:47 -05:00
template Remove Alpha and Tru64 support. 2014-06-28 21:46:15 +02:00
test Fix namespace handling in xpath function 2015-01-06 23:06:13 -05:00
timezone Update copyright for 2015 2015-01-06 11:43:47 -05:00
tools Document that Perl's Tie might add a trailing newline 2015-01-06 15:52:15 -05:00
tutorial Update copyright for 2015 2015-01-06 11:43:47 -05:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +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 Create libpgcommon, and move pg_malloc et al to it 2013-02-12 11:21:05 -03:00
Makefile.global.in Fix installcheck case for tap tests 2014-12-24 10:31:36 -05:00
Makefile.shlib Clarify .def file comments. 2014-11-02 21:43:33 -05:00
bcc32.mak Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00
nls-global.mk Setup error context callback for transaction lock waits 2014-03-19 15:10:36 -03:00
win32.mak Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00