Add option -N/--no-sync to pg_upgrade
Michael Paquier <michael@paquier.xyz>
Add option -N/--no-sync to pg_upgrade This is an option consistent with what the other tools of src/bin/ (pg_checksums, pg_dump, pg_rewind and pg_basebackup) provide which is useful for leveraging the I/O effort when testing things. This is not to be used in a production environment. All the regression tests of pg_upgrade are updated to use this new option. This happens to cut at most a couple of seconds in environments constrained on I/O, by avoiding a flush of data folder for the new cluster upgraded. Author: Michael Paquier Reviewed-by: Peter Eisentraut Discussion: https://postgr.es/m/YbrhzuBmBxS/DkfX@paquier.xyz
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/ref/pgupgrade.sgml | modified | +16 −0 |
| src/bin/pg_upgrade/option.c | modified | +8 −1 |
| src/bin/pg_upgrade/pg_upgrade.c | modified | +8 −5 |
| src/bin/pg_upgrade/pg_upgrade.h | modified | +1 −0 |
| src/bin/pg_upgrade/test.sh | modified | +1 −1 |
| src/tools/msvc/vcregress.pl | modified | +3 −1 |
Documentation touched
Discussion
- Addition of --no-sync to pg_upgrade for test speedup 6 messages · 2021-12-16 → 2021-12-22