On Thu, Mar 14, 2019 at 4:37 PM Julien Rouhaud <rjuju...@gmail.com> wrote: > > + if (newitem <= sbs->last_item) > + elog(ERROR, "cannot insert to sparse bitset out of order"); > > Is there any reason to disallow inserting duplicates? AFAICT nothing > prevents that in the current code. If that's intended, that probably > should be documented.
That of course won't work well with SBS_LEAF_BITMAP. I'd still prefer a more explicit error message.