Re: pg_amcheck contrib application

Поиск
Список
Период
Сортировка
От Mark Dilger
Тема Re: pg_amcheck contrib application
Дата
Msg-id 356632EB-924D-438C-A4AB-97A1CAF6B039@enterprisedb.com
обсуждение исходный текст
Ответ на Re: pg_amcheck contrib application  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: pg_amcheck contrib application  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers

> On Apr 23, 2021, at 11:29 AM, Robert Haas <robertmhaas@gmail.com> wrote:
>
> +       expected_size = chunk_seq < last_chunk_seq ? TOAST_MAX_CHUNK_SIZE
> +               : extsize % TOAST_MAX_CHUNK_SIZE;
>
> What's different?

for one thing, if a sequence of chunks happens to fit perfectly, the final chunk will have size TOAST_MAX_CHUNK_SIZE,
butyou're expecting no larger than one less than that, given how modulo arithmetic works. 

—
Mark Dilger
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company






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

Предыдущее
От: Mark Dilger
Дата:
Сообщение: Re: pg_amcheck contrib application
Следующее
От: Justin Pryzby
Дата:
Сообщение: [PATCH] Remove extraneous whitespace in tags: > foo< and >bar <