if (max_replication_slots == 0)
ereport(ERROR,
(errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE),
- (errmsg("replication slot usage requires max_replication_slots > 0"))));
+ (errmsg("replication slots can only be used if max_replication_slots > 0"))));
if (wal_level < WAL_LEVEL_ARCHIVE)
ereport(ERROR,
(errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE),
- errmsg("replication slot usage requires wal_level >= archive")));
+ errmsg("replication slots can only be used i wal_level >= archive")));
}
/*
{
ereport(WARNING,
(errcode_for_file_access(),
- errmsg("could not remove directory \"%s\"", path),
- errmsg("some useless files may be left behind in that directory preventing creation of new slots")));
+ errmsg("could not remove directory \"%s\"", path)));
continue;
}
fsync_fname("pg_replslot", true);
SaveSlotToPath(slot, tmppath);
if (rename(tmppath, path) != 0)
- {
ereport(ERROR,
(errcode_for_file_access(),
errmsg("could not rename file \"%s\" to \"%s\": %m",
tmppath, path)));
- }
/*
* If we'd now fail - really unlikely - we wouldn't know wether this slot