forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd9daff0
committed
More jsonb cleanup.
Fix JSONB_MAX_ELEMS and JSONB_MAX_PAIRS macros to use CB_MASK in thecalculation. 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 haveaccess to the whole array and have enough context information to knowwhich entry is the first. This frees up one bit in the JEntry header forfuture use. While we're at it, shuffle the JEntry bits so that booleantrue and false go together, for aesthetic reasons.Bump catalog version as this changes the on-disk format slightly.1 parent46dddf7 commitd9daff0
File tree
3 files changed
+139
-216
lines changed- src
- backend/utils/adt
- include
- catalog
- utils
3 files changed
+139
-216
lines changed0 commit comments
Comments
(0)