Re: [PATCH] Add pg_lfind8_nonzero()

From: cca5507 <cca5507(at)qq(dot)com>
To: Peter Eisentraut <peter(at)eisentraut(dot)org>, pgsql-hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: [PATCH] Add pg_lfind8_nonzero()
Date: 2025-12-18 02:29:00
Message-ID: tencent_45A410C9A8E2351EE4D95586D6141ED7FA0A@qq.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2025-12-18 03:26:38 Re: Fixing the btree_gist inet mess
Previous Message Chao Li 2025-12-18 02:25:45 Re: Report bytes and transactions actually sent downtream