pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add bms_prev_member function
Date: Sat, 07 Apr 2018 21:02:18 +0000
Message-ID: <E1f4uyY-0005jD-MV@gemulon.postgresql.org> (raw)

Add bms_prev_member function

This works very much like the existing bms_last_member function, only it
traverses through the Bitmapset in the opposite direction from the most
significant bit down to the least significant bit.  A special prevbit value of
-1 may be used to have the function determine the most significant bit.  This
is useful for starting a loop.  When there are no members less than prevbit,
the function returns -2 to indicate there are no more members.

Author: David Rowley
Discussion: https://postgr.es/m/CAKJS1f-K=3d5MDASNYFJpUpc20xcBnAwNC1-AOeunhn0OtkWbQ@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/5c0675215e153ba1297fd494b34af2fdebd645d1

Modified Files
--------------
src/backend/nodes/bitmapset.c | 95 +++++++++++++++++++++++++++++++++++++++++++
src/include/nodes/bitmapset.h |  1 +
2 files changed, 96 insertions(+)



Message-ID: <E1f4uyY-0005jD-MV@gemulon.postgresql.org>
Permalink:  ../E1f4uyY-0005jD-MV@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1f4uyY-0005jD-MV@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: alvherre@alvh.no-ip.org
  Subject: Re: pgsql: Add bms_prev_member function
  In-Reply-To: <E1f4uyY-0005jD-MV@gemulon.postgresql.org>
  References: <E1f4uyY-0005jD-MV@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox