Consistently use "superuser" instead of "super user"
[pgsql.git] / src / include / storage / freespace.h
blob600826ca4b78a99d9d289a01aeb63bceec9afd32
1 /*-------------------------------------------------------------------------
3 * freespace.h
4 * POSTGRES free space map for quickly finding free space in relations
7 * Portions Copyright (c) 1996-2021, PostgreSQL Global Development Group
8 * Portions Copyright (c) 1994, Regents of the University of California
10 * src/include/storage/freespace.h
12 *-------------------------------------------------------------------------
14 #ifndef FREESPACE_H_
15 #define FREESPACE_H_
17 #include "storage/block.h"
18 #include "storage/relfilenode.h"
19 #include "utils/relcache.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,
25 BlockNumber oldPage,
26 Size oldSpaceAvail,
27 Size spaceNeeded);
28 extern void RecordPageWithFreeSpace(Relation rel, BlockNumber heapBlk,
29 Size spaceAvail);
30 extern void XLogRecordPageWithFreeSpace(RelFileNode rnode, BlockNumber heapBlk,
31 Size spaceAvail);
33 extern BlockNumber FreeSpaceMapPrepareTruncateRel(Relation rel,
34 BlockNumber nblocks);
35 extern void FreeSpaceMapVacuum(Relation rel);
36 extern void FreeSpaceMapVacuumRange(Relation rel, BlockNumber start,
37 BlockNumber end);
39 #endif /* FREESPACE_H_ */