@@ -633,17 +633,11 @@ rumbuild(Relation heap, Relation index, struct IndexInfo *indexInfo)
633633 * create a temporary memory context that is reset once for each tuple
634634 * inserted into the index
635635 */
636- buildstate .tmpCtx = AllocSetContextCreate (CurrentMemoryContext ,
637- "Rum build temporary context" ,
638- ALLOCSET_DEFAULT_MINSIZE ,
639- ALLOCSET_DEFAULT_INITSIZE ,
640- ALLOCSET_DEFAULT_MAXSIZE );
641-
642- buildstate .funcCtx = AllocSetContextCreate (CurrentMemoryContext ,
643- "Rum build temporary context for user-defined function" ,
644- ALLOCSET_DEFAULT_MINSIZE ,
645- ALLOCSET_DEFAULT_INITSIZE ,
646- ALLOCSET_DEFAULT_MAXSIZE );
636+ buildstate .tmpCtx = RumContextCreate (CurrentMemoryContext ,
637+ "Rum build temporary context" );
638+
639+ buildstate .funcCtx = RumContextCreate (CurrentMemoryContext ,
640+ "Rum build temporary context for user-defined function" );
647641
648642 buildstate .accum .rumstate = & buildstate .rumstate ;
649643 rumInitBA (& buildstate .accum );
@@ -813,11 +807,8 @@ ruminsert(Relation index, Datum *values, bool *isnull,
813807 Datum outerAddInfo = (Datum ) 0 ;
814808 bool outerAddInfoIsNull = true;
815809
816- insertCtx = AllocSetContextCreate (CurrentMemoryContext ,
817- "Rum insert temporary context" ,
818- ALLOCSET_DEFAULT_MINSIZE ,
819- ALLOCSET_DEFAULT_INITSIZE ,
820- ALLOCSET_DEFAULT_MAXSIZE );
810+ insertCtx = RumContextCreate (CurrentMemoryContext ,
811+ "Rum insert temporary context" );
821812
822813 oldCtx = MemoryContextSwitchTo (insertCtx );
823814
0 commit comments