Pavan Deolasee wrote: > > Sounds good. Should I submit that as a separate patch on current master?
Yes, please.
Attached.
Two new APIs added.
- CatalogInsertHeapAndIndex which does a simple_heap_insert followed by catalog updates
- CatalogUpdateHeapAndIndex which does a simple_heap_update followed by catalog updates
There are only a handful callers remain for simple_heap_insert/update after this patch. They are typically working with already opened indexes and hence I left them unchanged.