postgresql/src/fe_utils
Nathan Bossart 8c16ad3b43 Allow using syncfs() in frontend utilities.
This commit allows specifying a --sync-method in several frontend
utilities that must synchronize many files to disk (initdb,
pg_basebackup, pg_checksums, pg_dump, pg_rewind, and pg_upgrade).
On Linux, users can specify "syncfs" to synchronize the relevant
file systems instead of calling fsync() for every single file.  In
many cases, using syncfs() is much faster.

As with recovery_init_sync_method, this new option comes with some
caveats.  The descriptions of these caveats have been moved to a
new appendix section in the documentation.

Co-authored-by: Justin Pryzby
Reviewed-by: Michael Paquier, Thomas Munro, Robert Haas, Justin Pryzby
Discussion: https://postgr.es/m/20210930004340.GM831%40telsasoft.com
2023-09-06 16:27:16 -07:00
..
.gitignore Move psql's psqlscan.l into src/fe_utils. 2016-03-24 20:28:47 -04:00
archive.c Revert refactoring of restore command code to shell_restore.c 2023-02-06 08:28:42 +09:00
cancel.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
conditional.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
connect_utils.c Harmonize password reuse in vacuumdb, clusterdb, and reindexdb. 2023-07-28 10:07:44 -07:00
Makefile Update copyright for 2023 2023-01-02 15:00:37 -05:00
mbprint.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
meson.build Update copyright for 2023 2023-01-02 15:00:37 -05:00
option_utils.c Allow using syncfs() in frontend utilities. 2023-09-06 16:27:16 -07:00
parallel_slot.c Add options to control whether VACUUM runs vac_update_datfrozenxid. 2023-01-06 14:17:25 -05:00
print.c Pre-beta mechanical code beautification. 2023-05-19 17:24:48 -04:00
psqlscan.l Handle \v as a whitespace character in parsers 2023-07-06 08:16:24 +09:00
query_utils.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
recovery_gen.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
simple_list.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
string_utils.c Handle \v as a whitespace character in parsers 2023-07-06 08:16:24 +09:00