mirror of
https://github.com/postgres/postgres.git
synced 2025-12-21 05:21:08 +03:00
Revert "Avoid creation of the free space map for small heap relations."
This reverts commit ac88d2962a.
This commit is contained in:
@@ -18,20 +18,15 @@
|
||||
#include "storage/relfilenode.h"
|
||||
#include "utils/relcache.h"
|
||||
|
||||
/* Only create the FSM if the heap has greater than this many blocks */
|
||||
#define HEAP_FSM_CREATION_THRESHOLD 4
|
||||
|
||||
/* prototypes for public functions in freespace.c */
|
||||
extern Size GetRecordedFreeSpace(Relation rel, BlockNumber heapBlk);
|
||||
extern BlockNumber GetPageWithFreeSpace(Relation rel, Size spaceNeeded,
|
||||
bool check_fsm_only);
|
||||
extern BlockNumber GetPageWithFreeSpace(Relation rel, Size spaceNeeded);
|
||||
extern BlockNumber RecordAndGetPageWithFreeSpace(Relation rel,
|
||||
BlockNumber oldPage,
|
||||
Size oldSpaceAvail,
|
||||
Size spaceNeeded);
|
||||
extern void RecordPageWithFreeSpace(Relation rel, BlockNumber heapBlk,
|
||||
Size spaceAvail, BlockNumber nblocks);
|
||||
extern void FSMClearLocalMap(void);
|
||||
Size spaceAvail);
|
||||
extern void XLogRecordPageWithFreeSpace(RelFileNode rnode, BlockNumber heapBlk,
|
||||
Size spaceAvail);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user