Lines Matching refs:btspool2

271 static void _bt_leafbuild(BTSpool *btspool, BTSpool *btspool2);
283 BTSpool *btspool, BTSpool *btspool2);
291 static void _bt_parallel_scan_and_sort(BTSpool *btspool, BTSpool *btspool2,
440 BTSpool *btspool2 = (BTSpool *) palloc0(sizeof(BTSpool)); in _bt_spools_heapscan() local
444 btspool2->heap = heap; in _bt_spools_heapscan()
445 btspool2->index = index; in _bt_spools_heapscan()
446 btspool2->isunique = false; in _bt_spools_heapscan()
448 buildstate->spool2 = btspool2; in _bt_spools_heapscan()
518 _bt_leafbuild(BTSpool *btspool, BTSpool *btspool2) in _bt_leafbuild() argument
531 if (btspool2) in _bt_leafbuild()
532 tuplesort_performsort(btspool2->sortstate); in _bt_leafbuild()
548 _bt_load(&wstate, btspool, btspool2); in _bt_leafbuild()
1071 _bt_load(BTWriteState *wstate, BTSpool *btspool, BTSpool *btspool2) in _bt_load() argument
1074 bool merge = (btspool2 != NULL); in _bt_load()
1093 itup2 = tuplesort_getindextuple(btspool2->sortstate, true); in _bt_load()
1173 itup2 = tuplesort_getindextuple(btspool2->sortstate, true); in _bt_load()
1572 BTSpool *btspool2; in _bt_parallel_build_main() local
1625 btspool2 = NULL; in _bt_parallel_build_main()
1631 btspool2 = (BTSpool *) palloc0(sizeof(BTSpool)); in _bt_parallel_build_main()
1634 btspool2->heap = btspool->heap; in _bt_parallel_build_main()
1635 btspool2->index = btspool->index; in _bt_parallel_build_main()
1636 btspool2->isunique = false; in _bt_parallel_build_main()
1647 _bt_parallel_scan_and_sort(btspool, btspool2, btshared, sharedsort, in _bt_parallel_build_main()
1679 _bt_parallel_scan_and_sort(BTSpool *btspool, BTSpool *btspool2, in _bt_parallel_scan_and_sort() argument
1706 if (btspool2) in _bt_parallel_scan_and_sort()
1720 btspool2->sortstate = in _bt_parallel_scan_and_sort()
1731 buildstate.spool2 = btspool2; in _bt_parallel_scan_and_sort()
1751 if (btspool2) in _bt_parallel_scan_and_sort()
1752 tuplesort_performsort(btspool2->sortstate); in _bt_parallel_scan_and_sort()
1773 if (btspool2) in _bt_parallel_scan_and_sort()
1774 tuplesort_end(btspool2->sortstate); in _bt_parallel_scan_and_sort()