PostgreSQL Source Code
git master
controldata_utils.h
Go to the documentation of this file.
1
/*
2
* controldata_utils.h
3
* Common code for pg_controldata output
4
*
5
* Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group
6
* Portions Copyright (c) 1994, Regents of the University of California
7
*
8
* src/include/common/controldata_utils.h
9
*/
10
#ifndef COMMON_CONTROLDATA_UTILS_H
11
#define COMMON_CONTROLDATA_UTILS_H
12
13
#include "
catalog/pg_control.h
"
14
15
extern
ControlFileData
*
get_controlfile
(
const
char
*
DataDir
,
bool
*crc_ok_p);
16
extern
void
update_controlfile
(
const
char
*
DataDir
,
17
ControlFileData
*
ControlFile
,
bool
do_sync
);
18
19
#endif
/* COMMON_CONTROLDATA_UTILS_H */
update_controlfile
void update_controlfile(const char *DataDir, ControlFileData *ControlFile, bool do_sync)
Definition:
controldata_utils.c:145
get_controlfile
ControlFileData * get_controlfile(const char *DataDir, bool *crc_ok_p)
Definition:
controldata_utils.c:52
DataDir
char * DataDir
Definition:
globals.c:66
do_sync
static bool do_sync
Definition:
initdb.c:162
pg_control.h
ControlFileData
Definition:
pg_control.h:103
ControlFile
static ControlFileData * ControlFile
Definition:
xlog.c:570
src
include
common
controldata_utils.h
Generated on Mon Sep 25 2023 00:13:23 for PostgreSQL Source Code by
1.9.1