diff options
author | Nathan Bossart | 2023-09-06 23:26:39 +0000 |
---|---|---|
committer | Nathan Bossart | 2023-09-06 23:26:39 +0000 |
commit | 3ed19567198ddb34ab32be6ebdf132148287abdf (patch) | |
tree | a8c08ec4456898b7a21f935c9ea9ed91dc050066 /src/include/common | |
parent | 059e4ee92108c0ecc01cb44a9cd1f00042271f7f (diff) |
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
Diffstat (limited to 'src/include/common')
-rw-r--r-- | src/include/common/file_utils.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/include/common/file_utils.h b/src/include/common/file_utils.h index dd1532bcb06..7da21f15e6e 100644 --- a/src/include/common/file_utils.h +++ b/src/include/common/file_utils.h @@ -24,6 +24,12 @@ typedef enum PGFileType PGFILETYPE_LNK } PGFileType; +typedef enum DataDirSyncMethod +{ + DATA_DIR_SYNC_METHOD_FSYNC, + DATA_DIR_SYNC_METHOD_SYNCFS +} DataDirSyncMethod; + struct iovec; /* avoid including port/pg_iovec.h here */ #ifdef FRONTEND |