mirror of
https://github.com/postgres/postgres.git
synced 2025-09-08 00:47:37 +03:00
Revert "Avoid creation of the free space map for small heap relations."
This reverts commit ac88d2962a
.
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
BlockNumber
|
||||
GetFreeIndexPage(Relation rel)
|
||||
{
|
||||
BlockNumber blkno = GetPageWithFreeSpace(rel, BLCKSZ / 2, true);
|
||||
BlockNumber blkno = GetPageWithFreeSpace(rel, BLCKSZ / 2);
|
||||
|
||||
if (blkno != InvalidBlockNumber)
|
||||
RecordUsedIndexPage(rel, blkno);
|
||||
@@ -51,7 +51,7 @@ GetFreeIndexPage(Relation rel)
|
||||
void
|
||||
RecordFreeIndexPage(Relation rel, BlockNumber freeBlock)
|
||||
{
|
||||
RecordPageWithFreeSpace(rel, freeBlock, BLCKSZ - 1, InvalidBlockNumber);
|
||||
RecordPageWithFreeSpace(rel, freeBlock, BLCKSZ - 1);
|
||||
}
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ RecordFreeIndexPage(Relation rel, BlockNumber freeBlock)
|
||||
void
|
||||
RecordUsedIndexPage(Relation rel, BlockNumber usedBlock)
|
||||
{
|
||||
RecordPageWithFreeSpace(rel, usedBlock, 0, InvalidBlockNumber);
|
||||
RecordPageWithFreeSpace(rel, usedBlock, 0);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user