aboutsummaryrefslogtreecommitdiff
path: root/src/tutorial
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2014-05-09 15:55:56 +0300
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2014-05-09 15:55:56 +0300
commitd9daff0e0cb15221789e6c50d9733c8754c054fb (patch)
tree166bd410ebca298fb27dc3d438dea4f9f6af8493 /src/tutorial
parent46dddf7673c5820be7c78a8b0e098fdbc65d003d (diff)
downloadpostgresql-d9daff0e0cb15221789e6c50d9733c8754c054fb.tar.gz
postgresql-d9daff0e0cb15221789e6c50d9733c8754c054fb.zip
More jsonb cleanup.
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.
Diffstat (limited to 'src/tutorial')
0 files changed, 0 insertions, 0 deletions