• Heikki Linnakangas's avatar
    More jsonb cleanup. · d9daff0e
    Heikki Linnakangas authored
    Fix JSONB_MAX_ELEMS and JSONB_MAX_PAIRS macros to use CB_MASK in the
    calculation. JENTRY_POSMASK happens to have the same value at the moment,
    but that's just coincidental.
    
    Refactor jsonb iterator functions, for readability.
    
    Get rid of the JENTRY_ISFIRST flag. Whenever we handle JEntrys, we have
    access to the whole array and have enough context information to know
    which entry is the first. This frees up one bit in the JEntry header for
    future use. While we're at it, shuffle the JEntry bits so that boolean
    true and false go together, for aesthetic reasons.
    
    Bump catalog version as this changes the on-disk format slightly.
    d9daff0e
catversion.h 2.53 KB