1 /*-------------------------------------------------------------------------
4 * POSTGRES free space map for quickly finding free space in relations
7 * Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
8 * Portions Copyright (c) 1994, Regents of the University of California
12 *-------------------------------------------------------------------------
17 #include "utils/rel.h"
18 #include "storage/bufpage.h"
19 #include "access/xlog.h"
21 /* prototypes for public functions in freespace.c */
22 extern Size
GetRecordedFreeSpace(Relation rel
, BlockNumber heapBlk
);
23 extern BlockNumber
GetPageWithFreeSpace(Relation rel
, Size spaceNeeded
);
24 extern BlockNumber
RecordAndGetPageWithFreeSpace(Relation rel
,
28 extern void RecordPageWithFreeSpace(Relation rel
, BlockNumber heapBlk
,
30 extern void XLogRecordPageWithFreeSpace(RelFileNode rnode
, BlockNumber heapBlk
,
33 extern void FreeSpaceMapTruncateRel(Relation rel
, BlockNumber nblocks
);
34 extern void FreeSpaceMapVacuum(Relation rel
);
36 #endif /* FREESPACE_H */