psql: Fix category of \parse in output of --help=commands and \?
authorMichael Paquier <[email protected]>
Fri, 22 Nov 2024 05:04:21 +0000 (14:04 +0900)
committerMichael Paquier <[email protected]>
Fri, 22 Nov 2024 05:04:21 +0000 (14:04 +0900)
\parse was listed under the category "Connection", which was incorrect.
Let's move it to "General" like the other meta-commands of the same type
(\bind, \bind_named and \close).

Oversight in commit d55322b0da60.

Discussion: https://postgr.es/m/[email protected]

src/bin/psql/help.c

index cfd9797423b005e68f56d57593c5892355b24085..3f4afc2d141c9757727529f2ec1bb6b93322325a 100644 (file)
@@ -174,6 +174,7 @@ slashUsage(unsigned short int pager)
    HELP0("  \\gexec                 execute query, then execute each value in its result\n");
    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("  \\parse STMT_NAME       create a prepared statement\n");
    HELP0("  \\q                     quit psql\n");
    HELP0("  \\watch [[i=]SEC] [c=N] [m=MIN]\n"
          "                         execute query every SEC seconds, up to N times,\n"
@@ -312,7 +313,6 @@ slashUsage(unsigned short int pager)
              "                         connect to new database (currently no connection)\n");
    HELP0("  \\conninfo              display information about current connection\n");
    HELP0("  \\encoding [ENCODING]   show or set client encoding\n");
-   HELP0("  \\parse STMT_NAME       create a prepared statement\n");
    HELP0("  \\password [USERNAME]   securely change the password for a user\n");
    HELP0("\n");