*** a/src/backend/access/transam/xlog.c
--- b/src/backend/access/transam/xlog.c
***************
*** 6818,6824 **** StartupXLOG(void)
  	else
  	{
  		/*
! 		 * Whenever Write.LogwrtResult points to exactly the end of a page,
  		 * Write.curridx must point to the *next* page (see XLogWrite()).
  		 *
  		 * Note: it might seem we should do AdvanceXLInsertBuffer() here, but
--- 6818,6824 ----
  	else
  	{
  		/*
! 		 * Whenever LogwrtResult points to exactly the end of a page,
  		 * Write.curridx must point to the *next* page (see XLogWrite()).
  		 *
  		 * Note: it might seem we should do AdvanceXLInsertBuffer() here, but