PostgreSQL Source Code git master
Loading...
Searching...
No Matches
datachecksum_state.h
Go to the documentation of this file.
1/*-------------------------------------------------------------------------
2 *
3 * datachecksum_state.h
4 * header file for data checksum helper background worker and data
5 * checksum state manipulation
6 *
7 *
8 * Portions Copyright (c) 1996-2026, PostgreSQL Global Development Group
9 * Portions Copyright (c) 1994, Regents of the University of California
10 *
11 * src/include/postmaster/datachecksum_state.h
12 *
13 *-------------------------------------------------------------------------
14 */
15#ifndef DATACHECKSUM_STATE_H
16#define DATACHECKSUM_STATE_H
17
18#include "storage/procsignal.h"
19
20/* Possible operations the Datachecksumsworker can perform */
26
27/*
28 * Possible states for a database entry which has been processed. Exported
29 * here since we want to be able to reference this from injection point tests.
30 */
38
39/* Prototypes for data checksum state manipulation */
42
43/* Prototypes for data checksum background worker */
44
45/* Start the background processes for enabling or disabling checksums */
47 int cost_delay,
48 int cost_limit);
49
50/* Background worker entrypoints */
53
54#endif /* DATACHECKSUM_STATE_H */
uint32_t uint32
Definition c.h:624
void StartDataChecksumsWorkerLauncher(DataChecksumsWorkerOperation op, int cost_delay, int cost_limit)
void EmitAndWaitDataChecksumsBarrier(uint32 state)
void DataChecksumsWorkerMain(Datum arg)
void DataChecksumsWorkerLauncherMain(Datum arg)
DataChecksumsWorkerOperation
@ DISABLE_DATACHECKSUMS
@ ENABLE_DATACHECKSUMS
bool AbsorbDataChecksumsBarrier(ProcSignalBarrierType target_state)
DataChecksumsWorkerResult
@ DATACHECKSUMSWORKER_ABORTED
@ DATACHECKSUMSWORKER_FAILED
@ DATACHECKSUMSWORKER_DROPDB
@ DATACHECKSUMSWORKER_SUCCESSFUL
Datum arg
Definition elog.c:1322
uint64_t Datum
Definition postgres.h:70
static int fb(int x)
ProcSignalBarrierType
Definition procsignal.h:47