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-2024, 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 ControlFileData *get_controlfile_by_exact_path(const char *ControlFilePath,
17  bool *crc_ok_p);
18 extern void update_controlfile(const char *DataDir,
20 
21 #endif /* COMMON_CONTROLDATA_UTILS_H */
void update_controlfile(const char *DataDir, ControlFileData *ControlFile, bool do_sync)
ControlFileData * get_controlfile(const char *DataDir, bool *crc_ok_p)
ControlFileData * get_controlfile_by_exact_path(const char *ControlFilePath, bool *crc_ok_p)
char * DataDir
Definition: globals.c:68
static bool do_sync
Definition: initdb.c:164
static ControlFileData * ControlFile
Definition: xlog.c:569