PostgreSQL Source Code
git master
datapagemap.h
Go to the documentation of this file.
1
/*-------------------------------------------------------------------------
2
*
3
* datapagemap.h
4
*
5
* Copyright (c) 2013-2024, PostgreSQL Global Development Group
6
*
7
*-------------------------------------------------------------------------
8
*/
9
#ifndef DATAPAGEMAP_H
10
#define DATAPAGEMAP_H
11
12
#include "
storage/block.h
"
13
#include "
storage/relfilelocator.h
"
14
15
struct
datapagemap
16
{
17
char
*
bitmap
;
18
int
bitmapsize
;
19
};
20
21
typedef
struct
datapagemap
datapagemap_t
;
22
typedef
struct
datapagemap_iterator
datapagemap_iterator_t
;
23
24
extern
void
datapagemap_add
(
datapagemap_t
*
map
,
BlockNumber
blkno);
25
extern
datapagemap_iterator_t
*
datapagemap_iterate
(
datapagemap_t
*
map
);
26
extern
bool
datapagemap_next
(
datapagemap_iterator_t
*iter,
BlockNumber
*blkno);
27
extern
void
datapagemap_print
(
datapagemap_t
*
map
);
28
29
#endif
/* DATAPAGEMAP_H */
block.h
BlockNumber
uint32 BlockNumber
Definition:
block.h:31
datapagemap_next
bool datapagemap_next(datapagemap_iterator_t *iter, BlockNumber *blkno)
Definition:
datapagemap.c:87
datapagemap_print
void datapagemap_print(datapagemap_t *map)
Definition:
datapagemap.c:117
datapagemap_add
void datapagemap_add(datapagemap_t *map, BlockNumber blkno)
Definition:
datapagemap.c:32
datapagemap_iterate
datapagemap_iterator_t * datapagemap_iterate(datapagemap_t *map)
Definition:
datapagemap.c:75
relfilelocator.h
datapagemap_iterator
Definition:
datapagemap.c:19
datapagemap_iterator::map
datapagemap_t * map
Definition:
datapagemap.c:20
datapagemap
Definition:
datapagemap.h:16
datapagemap::bitmapsize
int bitmapsize
Definition:
datapagemap.h:18
datapagemap::bitmap
char * bitmap
Definition:
datapagemap.h:17
src
bin
pg_rewind
datapagemap.h
Generated on Mon Sep 16 2024 18:13:23 for PostgreSQL Source Code by
1.9.1