Fix outdated --help message for postgres -f
authorMichael Paquier <[email protected]>
Mon, 15 Aug 2022 04:37:46 +0000 (13:37 +0900)
committerMichael Paquier <[email protected]>
Mon, 15 Aug 2022 04:37:46 +0000 (13:37 +0900)
This option switch supports a total of 8 values, as told by
set_plan_disabling_options() and the documentation, but this was not
reflected in the output generated by --help.

Author: Junwang Zhao
Discussion: https://postgr.es/m/CAEG8a3+pT3cWzyjzKs184L1XMNm8NDnoJLiSjAYSO7XqpRh_vA@mail.gmail.com
Backpatch-through: 10

src/backend/main/main.c

index f9d673f881c1da14f9e2252817b74b4b0219bfac..1df2f4d34c09fe77acec46c48d74de35abc35fa4 100644 (file)
@@ -352,7 +352,7 @@ help(const char *progname)
    printf(_("  -?, --help         show this help, then exit\n"));
 
    printf(_("\nDeveloper options:\n"));
-   printf(_("  -f s|i|n|m|h       forbid use of some plan types\n"));
+   printf(_("  -f s|i|o|b|t|n|m|h forbid use of some plan types\n"));
    printf(_("  -n                 do not reinitialize shared memory after abnormal exit\n"));
    printf(_("  -O                 allow system table structure changes\n"));
    printf(_("  -P                 disable system indexes\n"));