Make enum for sync methods available to frontend code.
authorNathan Bossart <nathan@postgresql.org>
Wed, 6 Sep 2023 23:26:39 +0000 (16:26 -0700)
committerNathan Bossart <nathan@postgresql.org>
Wed, 6 Sep 2023 23:26:39 +0000 (16:26 -0700)
commit3ed19567198ddb34ab32be6ebdf132148287abdf
treea8c08ec4456898b7a21f935c9ea9ed91dc050066
parent059e4ee92108c0ecc01cb44a9cd1f00042271f7f
Make enum for sync methods available to frontend code.

This commit renames RecoveryInitSyncMethod to DataDirSyncMethod and
moves it to common/file_utils.h.  This is preparatory work for a
follow-up commit that will allow specifying the synchronization
method in frontend utilities such as pg_upgrade and pg_basebackup.

Reviewed-by: Michael Paquier
Discussion: https://postgr.es/m/ZN2ZB4afQ2JbR9TA%40paquier.xyz
src/backend/storage/file/fd.c
src/backend/utils/misc/guc_tables.c
src/include/common/file_utils.h
src/include/storage/fd.h
src/tools/pgindent/typedefs.list