Re: Making empty Bitmapsets always be NULL

Поиск
Список
Период
Сортировка
От Jacob Champion
Тема Re: Making empty Bitmapsets always be NULL
Дата
Msg-id CAAWbhmiNCsQdiRwfET=OU66Z4kES9Bm_AATwj1uRn3=r43HXtw@mail.gmail.com
обсуждение исходный текст
Ответ на Making empty Bitmapsets always be NULL  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Tue, Feb 28, 2023 at 1:59 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> I also discovered that nodeAppend.c is relying on bms_del_members
> not reducing a non-empty set to NULL, because it uses the nullness
> of appendstate->as_valid_subplans as a state boolean.

I seem to recall that Deep and I tripped into this during the zedstore
column projection work. I think we started out using NULL as a
sentinel value for our bitmaps, too, and it looked like it worked,
until it didn't... so +1 to the simplification.

--Jacob



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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: buildfarm + meson
Следующее
От: Jehan-Guillaume de Rorthais
Дата:
Сообщение: Re: Memory leak from ExecutorState context?