Typically bitmap hashes are used for sparse collections of privileges.
Note that bitmap hashes may not be stored in shared variables as hashes in shared memory are insufficiently dynamic.
The following functions comprise the Veil bitmap hashes API:
veil_init_bitmap_hash(text, text)
veil_clear_bitmap_hash(text)
veil_bitmap_from_hash(text, text, text)
veil_bitmap_hash_testbit(text, text, int4)
veil_bitmap_hash_setbit(text, text, int4)
veil_bitmap_hash_clearbit(text, text, int4)
veil_union_into_bitmap_hash(text, text, text)
veil_union_from_bitmap_hash(text, text, text)
veil_intersect_from_bitmap_hash(text, text, text)
veil_bitmap_hash_bits(text, text)
veil_bitmap_hash_range(text)
veil_bitmap_hash_entries(text)
function veil_init_bitmap_hash(text, text) returns bool
function veil_clear_bitmap_hash(text) returns bool
function veil_bitmap_from_hash(text, text, text) returns text
function veil_bitmap_hash_testbit(text, text, int4) returns bool
function veil_bitmap_hash_setbit(text, text, int4) returns bool
function veil_bitmap_hash_clearbit(text, text, int4) returns bool
function veil_union_into_bitmap_hash(text, text, text) returns bool
veil_bitmap_union(veil_bitmap_from_hash(<bitmap_hash>, <key>), <bitmap>)
.
function veil_union_from_bitmap_hash(text, text, text) returns bool
veil_bitmap_union(<bitmap>, veil_bitmap_from_hash(<bitmap_array>, <key>))
.
function veil_intersect_from_bitmap_hash(text, text, text) returns bool
veil_bitmap_intersect(<bitmap>, veil_bitmap_from_hash(<bitmap_array>, <key>))
.
function veil_bitmap_hash_bits(text, text) returns setof int4
function veil_bitmap_hash_range(text) returns veil_range_t
function veil_bitmap_hash_entries(text) returns setof text
Next: Integer Arrays