Re: Fix a couple of misuages of bms_num_members()

Tomas Vondra <tomas.vondra@2ndquadrant.com>

From: Tomas Vondra <tomas.vondra@2ndquadrant.com>
To: David Rowley <dgrowleyml@gmail.com>
Cc: PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>
Date: 2020-08-25T13:18:02Z
Lists: pgsql-hackers
On Wed, Aug 26, 2020 at 12:51:37AM +1200, David Rowley wrote:
>I noticed today there are a few places where we use bms_num_memebers()
>where we really should be using bms_membership().  These are not bugs,
>they're mostly just bad examples to leave laying around, at best, and
>a small performance penalty, at worst.
>
>Unless there are any objections, I plan to push this to master only in
>about 10 hours time.
>

Seems OK to me. Thanks.


regards

-- 
Tomas Vondra                  http://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



Commits

  1. Fixup some misusages of bms_num_members()