• Tom Lane's avatar
    Add bms_get_singleton_member(), and use it where appropriate. · d25367ec
    Tom Lane authored
    This patch adds a function that replaces a bms_membership() test followed
    by a bms_singleton_member() call, performing both the test and the
    extraction of a singleton set's member in one scan of the bitmapset.
    The performance advantage over the old way is probably minimal in current
    usage, but it seems worthwhile on notational grounds anyway.
    
    David Rowley
    d25367ec
bitmapset.c 20.7 KB