aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Gustafsson <dgustafsson@postgresql.org>2021-08-16 13:38:01 +0200
committerDaniel Gustafsson <dgustafsson@postgresql.org>2021-08-16 13:38:01 +0200
commitea499f3d28c657a044f0a948e6b77ac56f28a8f6 (patch)
tree087b0d4c5c44005a968a4f49e860772c5373bd5a /src
parente4ba1005c0f7a95e3252f38aee02426117b8e12b (diff)
downloadpostgresql-ea499f3d28c657a044f0a948e6b77ac56f28a8f6.tar.gz
postgresql-ea499f3d28c657a044f0a948e6b77ac56f28a8f6.zip
Clarify initdb --sync-only help message and docs
The initdb help message for --sync-only was a bit terse, and not really self-explanatory. Make it clearer that initdb --sync-only will exit after syncing, and expand the docs with a note on when the option can be useful. Also align the help output with others that exit immediately. Author: Nathan Bossart, Gurjeet Singh Discussion: https://postgr.es/m/CABwTF4U6hbNNE1bv=LxQdJybmUdZ5NJQ9rKY9tN82NXM8QH+iQ@mail.gmail.com
Diffstat (limited to 'src')
-rw-r--r--src/bin/initdb/initdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/initdb/initdb.c b/src/bin/initdb/initdb.c
index 5e84c7bb20e..f05cddf0e08 100644
--- a/src/bin/initdb/initdb.c
+++ b/src/bin/initdb/initdb.c
@@ -2200,7 +2200,7 @@ usage(const char *progname)
printf(_(" -N, --no-sync do not wait for changes to be written safely to disk\n"));
printf(_(" --no-instructions do not print instructions for next steps\n"));
printf(_(" -s, --show show internal settings\n"));
- printf(_(" -S, --sync-only only sync data directory\n"));
+ printf(_(" -S, --sync-only only sync database files to disk, then exit\n"));
printf(_("\nOther options:\n"));
printf(_(" -V, --version output version information, then exit\n"));
printf(_(" -?, --help show this help, then exit\n"));