Expose new function get_controlfile_by_exact_path().
authorRobert Haas <[email protected]>
Wed, 13 Mar 2024 16:06:44 +0000 (12:06 -0400)
committerRobert Haas <[email protected]>
Wed, 13 Mar 2024 16:06:44 +0000 (12:06 -0400)
commitdbfc44716596073b99e093a04e29e774a518f520
tree54633322a838768f020053bea59f391e313422ec
parent97d85be365443eb4bf84373a7468624762382059
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
src/bin/pg_combinebackup/pg_combinebackup.c
src/common/controldata_utils.c
src/include/common/controldata_utils.h