*** a/src/backend/access/transam/xlog.c
--- b/src/backend/access/transam/xlog.c
***************
*** 2759,2766 **** RestoreArchivedFile(char *path, const char *xlogfname,
  	uint32		restartLog;
  	uint32		restartSeg;
  
! 	/* In standby mode, restore_command might not be supplied */
! 	if (StandbyMode && recoveryRestoreCommand == NULL)
  		goto not_available;
  
  	/*
--- 2759,2769 ----
  	uint32		restartLog;
  	uint32		restartSeg;
  
! 	/*
! 	 * Returns FALSE if restore_command has not been supplied. This is
! 	 * possible in standby mode.
! 	 */
! 	if (recoveryRestoreCommand == NULL)
  		goto not_available;
  
  	/*
