|
|
@ -1522,13 +1522,13 @@ RestoreSlotFromDisk(const char *name) |
|
|
|
if (cp.slotdata.database != InvalidOid && wal_level < WAL_LEVEL_LOGICAL) |
|
|
|
if (cp.slotdata.database != InvalidOid && wal_level < WAL_LEVEL_LOGICAL) |
|
|
|
ereport(FATAL, |
|
|
|
ereport(FATAL, |
|
|
|
(errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE), |
|
|
|
(errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE), |
|
|
|
errmsg("logical replication slots \"%s\" exists, but wal_level < logical", |
|
|
|
errmsg("logical replication slot \"%s\" exists, but wal_level < logical", |
|
|
|
NameStr(cp.slotdata.name)), |
|
|
|
NameStr(cp.slotdata.name)), |
|
|
|
errhint("Change wal_level to be replica or higher."))); |
|
|
|
errhint("Change wal_level to be replica or higher."))); |
|
|
|
else if (wal_level < WAL_LEVEL_REPLICA) |
|
|
|
else if (wal_level < WAL_LEVEL_REPLICA) |
|
|
|
ereport(FATAL, |
|
|
|
ereport(FATAL, |
|
|
|
(errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE), |
|
|
|
(errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE), |
|
|
|
errmsg("physical replication slots \"%s\" exists, but wal_level < replica", |
|
|
|
errmsg("physical replication slot \"%s\" exists, but wal_level < replica", |
|
|
|
NameStr(cp.slotdata.name)), |
|
|
|
NameStr(cp.slotdata.name)), |
|
|
|
errhint("Change wal_level to be replica or higher."))); |
|
|
|
errhint("Change wal_level to be replica or higher."))); |
|
|
|
|
|
|
|
|
|
|
|