Re: Microoptimization of Bitmapset usage in postgres_fdw - Mailing list pgsql-hackers

From Bossart, Nathan
Subject Re: Microoptimization of Bitmapset usage in postgres_fdw
Date
Msg-id FD2C3227-45D8-493A-AB5A-2BA04733191B@amazon.com
Whole thread Raw
In response to Re: Microoptimization of Bitmapset usage in postgres_fdw  (Daniel Gustafsson <daniel@yesql.se>)
Responses Re: Microoptimization of Bitmapset usage in postgres_fdw
List pgsql-hackers
Thanks for the updated patch set.

On 6/14/18, 2:34 PM, "Daniel Gustafsson" <daniel@yesql.se> wrote:
>> 2) BuildRelationExtStatistics() in extended_stats.c.
>> 
>>     /* check allowed number of dimensions */
>>     Assert(bms_num_members(stat->columns) >= 2 &&
>>            bms_num_members(stat->columns) <= STATS_MAX_DIMENSIONS);
>
> Since this usage is in an assertion I don’t see the value in changing it as the
> current programming is more optimized for readability.

Agreed.  I hesitated to even point this one out.

I'll go ahead and mark this as Ready for Committer.

Nathan


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Shared access methods?
Next
From: Tom Lane
Date:
Subject: Re: Portability concerns over pq_sendbyte?