* Per-tuple callback from IndexBuildHeapScan */
| 589 | * Per-tuple callback from IndexBuildHeapScan |
| 590 | */ |
| 591 | static void |
| 592 | bmbuildCallback(Relation index, ItemPointer tupleId, Datum *attdata, |
| 593 | bool *nulls, bool tupleIsAlive pg_attribute_unused(), void *state) |
| 594 | { |
| 595 | BMBuildState *bstate = (BMBuildState *) state; |
| 596 | |
| 597 | _bitmap_buildinsert(index, *tupleId, attdata, nulls, bstate); |
| 598 | bstate->ituples += 1; |
| 599 | |
| 600 | if (((int)bstate->ituples) % 1000 == 0) |
| 601 | CHECK_FOR_INTERRUPTS(); |
| 602 | } |
| 603 | |
| 604 | /* |
| 605 | * Free an IndexScanDesc created by copy_scan_desc(). If releaseBuffers is true, |
nothing calls this directly
no test coverage detected