summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut2024-04-24 06:56:21 +0000
committerPeter Eisentraut2024-04-24 06:56:21 +0000
commitf994ed89a98b9aed405c760f157a10125eb8d567 (patch)
treebdcbb361087c3fa8a9e2c26240d6a7e876b27612
parentc3fa85b249e457898a24cb3125a4a1b6b9c0e631 (diff)
pg_walsummary: Document --version option
It was working, but it was not shown in the --help output or on the man page.
-rw-r--r--doc/src/sgml/ref/pg_walsummary.sgml10
-rw-r--r--src/bin/pg_walsummary/pg_walsummary.c1
2 files changed, 11 insertions, 0 deletions
diff --git a/doc/src/sgml/ref/pg_walsummary.sgml b/doc/src/sgml/ref/pg_walsummary.sgml
index 96835d2f605..57b2d24650c 100644
--- a/doc/src/sgml/ref/pg_walsummary.sgml
+++ b/doc/src/sgml/ref/pg_walsummary.sgml
@@ -84,6 +84,16 @@ PostgreSQL documentation
</varlistentry>
<varlistentry>
+ <term><option>-V</option></term>
+ <term><option>--version</option></term>
+ <listitem>
+ <para>
+ Display version information, then exit.
+ </para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
<term><option>-?</option></term>
<term><option>--help</option></term>
<listitem>
diff --git a/src/bin/pg_walsummary/pg_walsummary.c b/src/bin/pg_walsummary/pg_walsummary.c
index daf6cd14ce7..ffe183f0eee 100644
--- a/src/bin/pg_walsummary/pg_walsummary.c
+++ b/src/bin/pg_walsummary/pg_walsummary.c
@@ -270,6 +270,7 @@ help(const char *progname)
printf(_("\nOptions:\n"));
printf(_(" -i, --individual list block numbers individually, not as ranges\n"));
printf(_(" -q, --quiet don't print anything, just parse the files\n"));
+ printf(_(" -V, --version output version information, then exit\n"));
printf(_(" -?, --help show this help, then exit\n"));
printf(_("\nReport bugs to <%s>.\n"), PACKAGE_BUGREPORT);