Re: DSA failed to allocate memory

Поиск
Список
Период
Сортировка
От Thomas Munro
Тема Re: DSA failed to allocate memory
Дата
Msg-id CA+hUKGKMsNg55OqAWy-p8+T+bf1UK2CeLgyG0jFtTVnaaEh0qw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: DSA failed to allocate memory  (Thomas Munro <thomas.munro@gmail.com>)
Ответы Re: DSA failed to allocate memory  (Thomas Munro <thomas.munro@gmail.com>)
Список pgsql-hackers
On Mon, Feb 20, 2023 at 5:52 PM Thomas Munro <thomas.munro@gmail.com> wrote:
> I'm wondering about this bit in rebin_segment():
>
> +       if (segment_map->header == NULL)
> +               return;
>
> Why would we be rebinning an uninitialised/unused segment?

Answering my own question: because destroy_superblock() can do that.
So I think destroy_superblock() should test for that case, not
rebin_segment().  See attached.

Вложения

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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: Fix a typo in md.c
Следующее
От: Thomas Munro
Дата:
Сообщение: Re: Inconsistent results with libc sorting on Windows