Re: [PATCH] Add pg_lfind8_nonzero()

Поиск
Список
Период
Сортировка
От cca5507
Тема Re: [PATCH] Add pg_lfind8_nonzero()
Дата
Msg-id tencent_45A410C9A8E2351EE4D95586D6141ED7FA0A@qq.com
обсуждение исходный текст
Ответ на Re: [PATCH] Add pg_lfind8_nonzero()  (Peter Eisentraut <peter@eisentraut.org>)
Список pgsql-hackers
Hi,

> Maybe you could try popcount for this?
> 
>      hasnull = (pg_popcount((char *) isnull, numberOfAttributes) > 0);

It seems that pg_popcount() cannot early return when we find a nonzero value, so I don't
think it's a good choice for this case.

--
Regards,
ChangAo Chen

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