END_CRIT_SECTION();
if (needCleanup)
- ginInsertCleanup(ginstate, false, true, NULL);
+ ginInsertCleanup(ginstate, true, NULL);
}
/*
* action of removing a page from the pending list really needs exclusive
* lock.
*
- * vac_delay indicates that ginInsertCleanup should call
- * vacuum_delay_point() periodically.
- *
* fill_fsm indicates that ginInsertCleanup should add deleted pages
* to FSM otherwise caller is responsible to put deleted pages into
* FSM.
*/
void
ginInsertCleanup(GinState *ginstate,
- bool vac_delay, bool fill_fsm,
- IndexBulkDeleteResult *stats)
+ bool fill_fsm, IndexBulkDeleteResult *stats)
{
Relation index = ginstate->index;
Buffer metabuffer,
/* Yes, so initialize stats to zeroes */
stats = (IndexBulkDeleteResult *) palloc0(sizeof(IndexBulkDeleteResult));
/* and cleanup any pending inserts */
- ginInsertCleanup(&gvs.ginstate, true, false, stats);
+ ginInsertCleanup(&gvs.ginstate, false, stats);
}
/* we'll re-count the tuples each time */
if (IsAutoVacuumWorkerProcess())
{
initGinState(&ginstate, index);
- ginInsertCleanup(&ginstate, true, true, stats);
+ ginInsertCleanup(&ginstate, true, stats);
}
return stats;
}
{
stats = (IndexBulkDeleteResult *) palloc0(sizeof(IndexBulkDeleteResult));
initGinState(&ginstate, index);
- ginInsertCleanup(&ginstate, true, false, stats);
+ ginInsertCleanup(&ginstate, false, stats);
}
memset(&idxStat, 0, sizeof(idxStat));
OffsetNumber attnum, Datum value, bool isNull,
ItemPointer ht_ctid);
extern void ginInsertCleanup(GinState *ginstate,
- bool vac_delay, bool fill_fsm, IndexBulkDeleteResult *stats);
+ bool fill_fsm, IndexBulkDeleteResult *stats);
/* ginpostinglist.c */