Lines Matching refs:targetBlock

80 ReadBufferBI(Relation relation, BlockNumber targetBlock,
87 return ReadBufferExtended(relation, MAIN_FORKNUM, targetBlock,
93 if (BufferGetBlockNumber(bistate->current_buf) == targetBlock)
111 buffer = ReadBufferExtended(relation, MAIN_FORKNUM, targetBlock,
334 BlockNumber targetBlock,
377 targetBlock = InvalidBlockNumber;
381 targetBlock = BufferGetBlockNumber(bistate->current_buf);
383 targetBlock = RelationGetTargetBlock(relation);
385 if (targetBlock == InvalidBlockNumber && use_fsm)
391 targetBlock = GetPageWithFreeSpace(relation, len + saveFreeSpace);
398 if (targetBlock == InvalidBlockNumber)
403 targetBlock = nblocks - 1;
408 while (targetBlock != InvalidBlockNumber)
426 buffer = ReadBufferBI(relation, targetBlock, RBM_NORMAL, bistate);
428 visibilitymap_pin(relation, targetBlock, vmbuffer);
431 else if (otherBlock == targetBlock)
436 visibilitymap_pin(relation, targetBlock, vmbuffer);
439 else if (otherBlock < targetBlock)
442 buffer = ReadBuffer(relation, targetBlock);
444 visibilitymap_pin(relation, targetBlock, vmbuffer);
451 buffer = ReadBuffer(relation, targetBlock);
453 visibilitymap_pin(relation, targetBlock, vmbuffer);
479 if (otherBuffer == InvalidBuffer || targetBlock <= otherBlock)
481 targetBlock, otherBlock, vmbuffer,
485 otherBlock, targetBlock, vmbuffer_other,
510 RelationSetTargetBlock(relation, targetBlock);
523 else if (otherBlock != targetBlock)
537 targetBlock = RecordAndGetPageWithFreeSpace(relation,
538 targetBlock,
572 targetBlock = GetPageWithFreeSpace(relation, len + saveFreeSpace);
578 if (targetBlock != InvalidBlockNumber)
638 targetBlock = BufferGetBlockNumber(buffer);
639 Assert(targetBlock > otherBlock);
655 otherBlock, targetBlock, vmbuffer_other,