postgresql/src
Nathan Bossart cccc6cdeb3 Add support for syncfs() in frontend support functions.
This commit adds support for using syncfs() in fsync_pgdata() and
fsync_dir_recurse() (which have been renamed to sync_pgdata() and
sync_dir_recurse()).  Like recovery_init_sync_method,
sync_pgdata() calls syncfs() for the data directory, each
tablespace, and pg_wal (if it is a symlink).  For now, all of the
frontend utilities that use these support functions are hard-coded
to use fsync(), but a follow-up commit will allow specifying
syncfs().

Co-authored-by: Justin Pryzby
Reviewed-by: Michael Paquier
Discussion: https://postgr.es/m/20210930004340.GM831%40telsasoft.com
2023-09-06 16:27:00 -07:00
..
backend Make enum for sync methods available to frontend code. 2023-09-06 16:26:39 -07:00
bin Add support for syncfs() in frontend support functions. 2023-09-06 16:27:00 -07:00
common Add support for syncfs() in frontend support functions. 2023-09-06 16:27:00 -07:00
fe_utils Harmonize password reuse in vacuumdb, clusterdb, and reindexdb. 2023-07-28 10:07:44 -07:00
include Add support for syncfs() in frontend support functions. 2023-09-06 16:27:00 -07:00
interfaces Fix comment of PQputCopyEnd() 2023-08-30 08:29:08 +09:00
makefiles Remove --disable-thread-safety and related code. 2023-07-12 08:20:43 +12:00
pl Avoid unnecessary plancache revalidation of utility statements. 2023-08-24 12:02:46 -04:00
port Meson: check for pg_config_paths.h left over from make 2023-08-24 10:33:53 +12:00
template Use unnamed POSIX semaphores on Cygwin. 2023-01-06 10:33:28 +13:00
test Update comments to match location of definition 2023-09-06 10:18:30 +02:00
timezone Pre-beta mechanical code beautification. 2023-05-19 17:24:48 -04:00
tools Make enum for sync methods available to frontend code. 2023-09-06 16:26:39 -07:00
tutorial Pre-beta mechanical code beautification. 2023-05-19 17:24:48 -04:00
.gitignore
DEVELOPERS
Makefile Integrate pg_bsd_indent into our build/test infrastructure. 2023-02-12 12:22:21 -05:00
Makefile.global.in Generate a locale-agnostic initdb template 2023-08-29 18:06:55 +02:00
Makefile.shlib autoconf: Rely on ar supporting index creation 2022-10-07 11:53:39 -07:00
meson.build Integrate pg_bsd_indent into our build/test infrastructure. 2023-02-12 12:22:21 -05:00
nls-global.mk Fix for make unportability 2022-07-13 09:15:01 +02:00