PostgreSQL Source Code
git master
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
c
d
g
h
i
k
l
m
p
r
s
t
Functions
Variables
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
c
d
f
h
i
n
o
p
r
s
t
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
verify_common.h
Go to the documentation of this file.
1
/*-------------------------------------------------------------------------
2
*
3
* amcheck.h
4
* Shared routines for amcheck verifications.
5
*
6
* Copyright (c) 2016-2025, PostgreSQL Global Development Group
7
*
8
* IDENTIFICATION
9
* contrib/amcheck/amcheck.h
10
*
11
*-------------------------------------------------------------------------
12
*/
13
#include "
storage/bufpage.h
"
14
#include "
storage/lmgr.h
"
15
#include "
storage/lockdefs.h
"
16
#include "
utils/relcache.h
"
17
#include "
miscadmin.h
"
18
19
/* Typedefs for callback functions for amcheck_lock_relation_and_check */
20
typedef
void (*
IndexCheckableCallback
) (
Relation
index
);
21
typedef
void (*
IndexDoCheckCallback
) (
Relation
rel,
22
Relation
heaprel,
23
void
*
state
,
24
bool
readonly);
25
26
extern
void
amcheck_lock_relation_and_check
(
Oid
indrelid,
27
Oid
am_id,
28
IndexDoCheckCallback
check,
29
LOCKMODE
lockmode,
void
*
state
);
30
31
extern
bool
index_checkable
(
Relation
rel,
Oid
am_id);
bufpage.h
lmgr.h
lockdefs.h
LOCKMODE
int LOCKMODE
Definition:
lockdefs.h:26
miscadmin.h
Oid
unsigned int Oid
Definition:
postgres_ext.h:30
relcache.h
RelationData
Definition:
rel.h:56
index
Definition:
type.h:96
state
Definition:
regguts.h:323
amcheck_lock_relation_and_check
void amcheck_lock_relation_and_check(Oid indrelid, Oid am_id, IndexDoCheckCallback check, LOCKMODE lockmode, void *state)
Definition:
verify_common.c:60
IndexCheckableCallback
void(* IndexCheckableCallback)(Relation index)
Definition:
verify_common.h:20
index_checkable
bool index_checkable(Relation rel, Oid am_id)
Definition:
verify_common.c:159
IndexDoCheckCallback
void(* IndexDoCheckCallback)(Relation rel, Relation heaprel, void *state, bool readonly)
Definition:
verify_common.h:21
contrib
amcheck
verify_common.h
Generated on Wed Apr 23 2025 12:13:13 for PostgreSQL Source Code by
1.9.4