summaryrefslogtreecommitdiff
path: root/src/include/optimizer
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2018-04-07 12:01:11 -0300
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2018-04-07 17:54:39 -0300
commit5c0675215e153ba1297fd494b34af2fdebd645d1 (patch)
tree516d918faddc7cf5d45ea109bae464d60572593a /src/include/optimizer
parentf16241bef7cc271bff60e23de2f827a10e50dde8 (diff)
downloadpostgresql-5c0675215e153ba1297fd494b34af2fdebd645d1.tar.gz
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
Diffstat (limited to 'src/include/optimizer')
0 files changed, 0 insertions, 0 deletions