| 1 | /* |
| 2 | * controldata_utils.h |
| 3 | * Common code for pg_controldata output |
| 4 | * |
| 5 | * Portions Copyright (c) 1996-2019, 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 */ |
| 20 | |