codekingpro/portable-devtools
114k
1/*-------------------------------------------------------------------------2 *3 * indexfsm.h4 * POSTGRES free space map for quickly finding an unused page in index5 *6 *7 * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group8 * Portions Copyright (c) 1994, Regents of the University of California9 *10 * src/include/storage/indexfsm.h11 *12 *-------------------------------------------------------------------------13 */14#ifndef INDEXFSM_H_15#define INDEXFSM_H_16 17#include "storage/block.h"18#include "utils/relcache.h"19 20extern BlockNumber GetFreeIndexPage(Relation rel);21extern void RecordFreeIndexPage(Relation rel, BlockNumber freeBlock);22extern void RecordUsedIndexPage(Relation rel, BlockNumber usedBlock);23 24extern void IndexFreeSpaceMapVacuum(Relation rel);25 26#endif /* INDEXFSM_H_ */27 