diff --git a/src/backend/replication/slot.c b/src/backend/replication/slot.c
new file mode 100644
index c13be75..82f6e65
*** a/src/backend/replication/slot.c
--- b/src/backend/replication/slot.c
*************** CheckSlotRequirements(void)
*** 763,769 ****
  	if (wal_level < WAL_LEVEL_REPLICA)
  		ereport(ERROR,
  				(errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE),
! 				 errmsg("replication slots can only be used if wal_level >= archive")));
  }
  
  /*
--- 763,769 ----
  	if (wal_level < WAL_LEVEL_REPLICA)
  		ereport(ERROR,
  				(errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE),
! 				 errmsg("replication slots can only be used if wal_level is \"replica\" or \"logical\"")));
  }
  
  /*
