PostgreSQL Source Code git master
verify_common.h
Go to the documentation of this file.
1/*-------------------------------------------------------------------------
2 *
3 * verify_common.h
4 * Shared routines for amcheck verifications.
5 *
6 * Copyright (c) 2016-2025, PostgreSQL Global Development Group
7 *
8 * IDENTIFICATION
9 * contrib/amcheck/verify_common.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/* Typedef for callback function for amcheck_lock_relation_and_check */
20typedef void (*IndexDoCheckCallback) (Relation rel,
21 Relation heaprel,
22 void *state,
23 bool readonly);
24
25extern void amcheck_lock_relation_and_check(Oid indrelid,
26 Oid am_id,
28 LOCKMODE lockmode, void *state);
int LOCKMODE
Definition: lockdefs.h:26
unsigned int Oid
Definition: postgres_ext.h:32
Definition: regguts.h:323
void amcheck_lock_relation_and_check(Oid indrelid, Oid am_id, IndexDoCheckCallback check, LOCKMODE lockmode, void *state)
Definition: verify_common.c:62
void(* IndexDoCheckCallback)(Relation rel, Relation heaprel, void *state, bool readonly)
Definition: verify_common.h:20