Re: Wrong HINT during database recovery when occur a minimal wal.

Поиск
Список
Период
Сортировка
От lchch1990@sina.cn
Тема Re: Wrong HINT during database recovery when occur a minimal wal.
Дата
Msg-id 202101151532579818867@sina.cn
обсуждение исходный текст
Ответ на Wrong HINT during database recovery when occur a minimal wal.  (<lchch1990@sina.cn>)
Ответы Re: Wrong HINT during database recovery when occur a minimal wal.  (Kyotaro Horiguchi <horikyota.ntt@gmail.com>)
Список pgsql-hackers

Sorry, I don't known why it showed in wrong format, and try to correct it.
-----

When I do PITR in a strange step, I get this FATAL:

2021-01-15 15:02:52.364 CST [14958] FATAL:  hot standby is not possible because wal_level was not set to "replica" or higher on the primary server
2021-01-15 15:02:52.364 CST [14958] HINT:  Either set wal_level to "replica" on the primary, or turn off hot_standby here.

The strange step is that I change wal_level to minimal after basebackup.

My question is that what's the mean of  [set wal_level to "replica" on the primary] in
HINT describe, I can't think over a case to solve this FATAL by set wal_level, I can
solve it by turn off hot_standby only.

Do you think we can do this code change?
--- a/src/backend/access/transam/xlog.c
+++ b/src/backend/access/transam/xlog.c
@@ -6300,7 +6300,7 @@ CheckRequiredParameterValues(void)
  if (ControlFile->wal_level < WAL_LEVEL_REPLICA)
  ereport(ERROR,
  (errmsg("hot standby is not possible because wal_level was not set to \"replica\" or higher on the primary server"),
-  errhint("Either set wal_level to \"replica\" on the primary, or turn off hot_standby here.")));
+  errhint("You should turn off hot_standby here.")));


Regards,
Highgo Software (Canada/China/Pakistan)
URL : www.highgo.ca
EMAIL: mailto:movead(dot)li(at)highgo(dot)ca

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: WIP: document the hook system
Следующее
От: japin
Дата:
Сообщение: Re: Logical Replication - behavior of ALTER PUBLICATION .. DROP TABLE and ALTER SUBSCRIPTION .. REFRESH PUBLICATION