diff options
author | Robert Haas <rhaas@postgresql.org> | 2024-03-13 12:06:44 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2024-03-13 12:06:44 -0400 |
commit | dbfc44716596073b99e093a04e29e774a518f520 (patch) | |
tree | 54633322a838768f020053bea59f391e313422ec /src/include/common/controldata_utils.h | |
parent | 97d85be365443eb4bf84373a7468624762382059 (diff) | |
download | postgresql-dbfc44716596073b99e093a04e29e774a518f520.tar.gz postgresql-dbfc44716596073b99e093a04e29e774a518f520.zip |
Expose new function get_controlfile_by_exact_path().
This works just like get_controlfile(), but expects the path to the
control file rather than the path to the data directory that contains
the control file. This makes more sense in cases where the caller
has already constructed the path to the control file itself.
Amul Sul and Robert Haas, reviewed by Michael Paquier
Diffstat (limited to 'src/include/common/controldata_utils.h')
-rw-r--r-- | src/include/common/controldata_utils.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/common/controldata_utils.h b/src/include/common/controldata_utils.h index 04da70e87b2..6e263ce0de0 100644 --- a/src/include/common/controldata_utils.h +++ b/src/include/common/controldata_utils.h @@ -13,6 +13,8 @@ #include "catalog/pg_control.h" extern ControlFileData *get_controlfile(const char *DataDir, bool *crc_ok_p); +extern ControlFileData *get_controlfile_by_exact_path(const char *ControlFilePath, + bool *crc_ok_p); extern void update_controlfile(const char *DataDir, ControlFileData *ControlFile, bool do_sync); |