Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
brin_revmap.h42 linesDownload Raw Back to access
1/*2 * brin_revmap.h3 *		Prototypes for BRIN reverse range maps4 *5 * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group6 * Portions Copyright (c) 1994, Regents of the University of California7 *8 * IDENTIFICATION9 *		src/include/access/brin_revmap.h10 */11 12#ifndef BRIN_REVMAP_H13#define BRIN_REVMAP_H14 15#include "access/brin_tuple.h"16#include "storage/block.h"17#include "storage/buf.h"18#include "storage/itemptr.h"19#include "storage/off.h"20#include "utils/relcache.h"21#include "utils/snapshot.h"22 23/* struct definition lives in brin_revmap.c */24typedef struct BrinRevmap BrinRevmap;25 26extern BrinRevmap *brinRevmapInitialize(Relation idxrel,27										BlockNumber *pagesPerRange, Snapshot snapshot);28extern void brinRevmapTerminate(BrinRevmap *revmap);29 30extern void brinRevmapExtend(BrinRevmap *revmap,31							 BlockNumber heapBlk);32extern Buffer brinLockRevmapPageForUpdate(BrinRevmap *revmap,33										  BlockNumber heapBlk);34extern void brinSetHeapBlockItemptr(Buffer buf, BlockNumber pagesPerRange,35									BlockNumber heapBlk, ItemPointerData tid);36extern BrinTuple *brinGetTupleForHeapBlock(BrinRevmap *revmap,37										   BlockNumber heapBlk, Buffer *buf, OffsetNumber *off,38										   Size *size, int mode, Snapshot snapshot);39extern bool brinRevmapDesummarizeRange(Relation idxrel, BlockNumber heapBlk);40 41#endif							/* BRIN_REVMAP_H */42 
codekingpro/portable-devtools · Team Ai