Incorrect overflow check condition for WAL segment size

Поиск
Список
Период
Сортировка
От Kuntal Ghosh
Тема Incorrect overflow check condition for WAL segment size
Дата
Msg-id CAGz5QC+Z3z=6u+M_ex0FH4+r_u6qg89WefJRv_S5VCqw+uS+4A@mail.gmail.com
обсуждение исходный текст
Ответы Re: Incorrect overflow check condition for WAL segment size
Список pgsql-hackers
Hi all,

Although we restrict the WAL segment size to 64 MB as upper limit, the
following piece of code in guc.c (line 715) seems confusing to me.

#if XLOG_SEG_SIZE < (1024*1024) || XLOG_BLCKSZ > (1024*1024*1024)
#error XLOG_SEG_SIZE must be between 1MB and 1GB
#endif

Either the comment is wrongly written or the check for overflow
condition has to be fixed. Assuming the overflow check condition to be
erroneous, I've attached a patch to fix this.

--
Thanks & Regards,
Kuntal Ghosh
EnterpriseDB: http://www.enterprisedb.com

Вложения

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

Предыдущее
От: "Tsunakawa, Takayuki"
Дата:
Сообщение: Re: Re: BUG #13755: pgwin32_is_service not checking if SECURITY_SERVICE_SID is disabled
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: Fix checkpoint skip logic on idle systems by tracking LSN progress