in clog before the page has been committed.
There are places in the code that try to extend clog,
but here we simply just do one retry if it looks like
we failed to read the desired page.
/* Do the read */
ok = SlruPhysicalReadPage(ctl, pageno, slotno);
+ /*
+ * If we failed, it may be because we tried to read the status
+ * before the page was created. Retry once
+ */
+ if (!ok && slru_errcause == SLRU_READ_FAILED)
+ {
+ ExtendLogs(xid);
+ /* Retry */
+ ok = SlruPhysicalReadPage(ctl, pageno, slotno);
+ }
+
/* Set the LSNs for this newly read-in page to zero */
SimpleLruZeroLSNs(ctl, slotno);