summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane2024-09-30 16:06:54 +0000
committerTom Lane2024-09-30 16:06:54 +0000
commit04c64e3fb35af090c249303b9df0a311f2a07593 (patch)
tree1eaec669ae6c80ced007163c25915f6c51a650e7
parent4dea33ce765d65d8807d343ca6535a3d067a63da (diff)
Remove incorrect entries in pg_walsummary's getopt_long call.
For some reason this listed "-f" and "-w" as valid switches, though the code doesn't implement any such thing nor do the docs mention them. The effect of this was that if you tried to use one of these switches, you'd get an unhelpful error message. Yusuke Sugie Discussion: https://postgr.es/m/[email protected]
-rw-r--r--src/bin/pg_walsummary/pg_walsummary.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/pg_walsummary/pg_walsummary.c b/src/bin/pg_walsummary/pg_walsummary.c
index 93f6e6d408a..f6a262d3184 100644
--- a/src/bin/pg_walsummary/pg_walsummary.c
+++ b/src/bin/pg_walsummary/pg_walsummary.c
@@ -71,7 +71,7 @@ main(int argc, char *argv[])
handle_help_version_opts(argc, argv, progname, help);
/* process command-line options */
- while ((c = getopt_long(argc, argv, "f:iqw:",
+ while ((c = getopt_long(argc, argv, "iq",
long_options, &optindex)) != -1)
{
switch (c)