controldata_utils.h 601 B

12345678910111213141516171819
  1. /*
  2. * controldata_utils.h
  3. * Common code for pg_controldata output
  4. *
  5. * Portions Copyright (c) 1996-2022, 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. #include "catalog/pg_control.h"
  13. extern ControlFileData *get_controlfile(const char *DataDir, bool *crc_ok_p);
  14. extern void update_controlfile(const char *DataDir,
  15. ControlFileData *ControlFile, bool do_sync);
  16. #endif /* COMMON_CONTROLDATA_UTILS_H */