On Thu, 07 Sep 2023 15:36:10 +0900 (JST)
Kyotaro Horiguchi <[email protected]> wrote:
> At Thu, 7 Sep 2023 15:02:49 +0900, Yugo NAGATA <[email protected]> wrote in
> > On Thu, 07 Sep 2023 14:29:56 +0900 (JST)
> > Kyotaro Horiguchi <[email protected]> wrote:
> > > > \q quit psql
> > > > \watch [[i=]SEC] [c=N] [m=MIN]
> > > !> execute query every SEC seconds, up to N times
> > > !> stop if less than MIN rows are returned
> > >
> > > The last two lines definitely have some extra indentation.
> >
> > Agreed.
> >
> > > I've attached a patch that fixes this.
> >
> > I wonder this better to fix this in similar way to other places where the
> > description has multiple lines., like "\g [(OPTIONS)] [FILE]".
>
> It looks correct to me:
Yes. So, I mean how about fixing \watch description as the attached patch.
>
> > \errverbose show most recent error message at maximum verbosity
> > \g [(OPTIONS)] [FILE] execute query (and send result to file or |pipe);
> > \g with no arguments is equivalent to a semicolon
> > \gdesc describe result of query, without executing it
>
> regards.
>
> --
> Kyotaro Horiguchi
> NTT Open Source Software Center
--
Yugo NAGATA <[email protected]>
diff --git a/src/bin/psql/help.c b/src/bin/psql/help.c
index 38c165a627..12280c0e54 100644
--- a/src/bin/psql/help.c
+++ b/src/bin/psql/help.c
@@ -200,9 +200,9 @@ slashUsage(unsigned short int pager)
HELP0(" \\gset [PREFIX] execute query and store result in psql variables\n");
HELP0(" \\gx [(OPTIONS)] [FILE] as \\g, but forces expanded output mode\n");
HELP0(" \\q quit psql\n");
- HELP0(" \\watch [[i=]SEC] [c=N] [m=MIN]\n");
- HELP0(" execute query every SEC seconds, up to N times\n");
- HELP0(" stop if less than MIN rows are returned\n");
+ HELP0(" \\watch [[i=]SEC] [c=N] [m=MIN]\n"
+ " execute query every SEC seconds, up to N times\n"
+ " stop if less than MIN rows are returned\n");
HELP0("\n");
HELP0("Help\n");