/*
* If required, set up an init fork for an unlogged table so that it can
- * be correctly reinitialized on restart. Recovery may remove it while
- * replaying, for example, an XLOG_DBASE_CREATE* or XLOG_TBLSPC_CREATE
- * record. Therefore, logging is necessary even if wal_level=minimal.
+ * be correctly reinitialized on restart.
*/
if (persistence == RELPERSISTENCE_UNLOGGED)
{
* make the XLOG entry for the benefit of PITR operations). This avoids
* two nasty scenarios:
*
- * #1: When PITR is off, we don't XLOG the contents of newly created
- * indexes; therefore the drop-and-recreate-whole-directory behavior of
- * DBASE_CREATE replay would lose such indexes.
+ * #1: At wal_level=minimal, we don't XLOG the contents of newly created
+ * relfilenodes; therefore the drop-and-recreate-whole-directory behavior
+ * of DBASE_CREATE replay would lose such files created in the new
+ * database between our commit and the next checkpoint.
*
* #2: Since we have to recopy the source database during DBASE_CREATE
* replay, we run the risk of copying changes in it that were committed