Make enum for sync methods available to frontend code.
Nathan Bossart <nathan@postgresql.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/storage/file/fd.c | modified | +2 −2 |
| src/backend/utils/misc/guc_tables.c | modified | +4 −3 |
| src/include/common/file_utils.h | modified | +6 −0 |
| src/include/storage/fd.h | modified | +0 −6 |
| src/tools/pgindent/typedefs.list | modified | +1 −0 |
Discussion
- should frontend tools use syncfs() ? 50 messages · 2021-09-30 → 2023-10-13