Re: remove open-coded popcount in acl.c - Mailing list pgsql-hackers

From Nathan Bossart
Subject Re: remove open-coded popcount in acl.c
Date
Msg-id Z9HQHX21PVAK-xea@nathan
Whole thread Raw
In response to Re: remove open-coded popcount in acl.c  (Álvaro Herrera <alvherre@alvh.no-ip.org>)
Responses Re: remove open-coded popcount in acl.c
List pgsql-hackers
On Wed, Mar 12, 2025 at 05:23:25PM +0100, Álvaro Herrera wrote:
> Strange: this code is not covered by any tests.
> 
> https://coverage.postgresql.org/src/backend/utils/adt/acl.c.gcov.html#5533
> https://coverage.postgresql.org/src/backend/utils/adt/acl.c.gcov.html#5438

Huh.  Well, it's easy enough to add some basic tests for the grantor
selection machinery.  Here's a first try.

-- 
nathan

Attachment

pgsql-hackers by date:

Previous
From: Alena Rybakina
Date:
Subject: Re: Replace IN VALUES with ANY in WHERE clauses during optimization
Next
From: Alvaro Herrera
Date:
Subject: Re: Support NOT VALID / VALIDATE constraint options for named NOT NULL constraints