]> granicus.if.org Git - postgresql/commitdiff
psql \? rearrangement, suggested by Tom.
authorBruce Momjian <bruce@momjian.us>
Wed, 11 Dec 2002 23:03:45 +0000 (23:03 +0000)
committerBruce Momjian <bruce@momjian.us>
Wed, 11 Dec 2002 23:03:45 +0000 (23:03 +0000)
src/bin/psql/help.c

index 236cac451395ae4d269109c47d07840c1c283beb..9393bf525dc72913cda6da58e24c43b05efc1391 100644 (file)
@@ -3,7 +3,7 @@
  *
  * Copyright 2000 by PostgreSQL Global Development Group
  *
- * $Header: /cvsroot/pgsql/src/bin/psql/help.c,v 1.64 2002/12/11 22:45:13 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/bin/psql/help.c,v 1.65 2002/12/11 23:03:45 momjian Exp $
  */
 #include "postgres_fe.h"
 #include "common.h"
@@ -191,13 +191,16 @@ slashUsage(unsigned short int pager)
        fprintf(output, _(" \\g [FILE]      send query buffer to server (and results to file or |pipe)\n"));
        fprintf(output, _(" \\r             reset (clear) the query buffer\n"));
        fprintf(output, _(" \\e [FILE]      edit the query buffer (or file) with external editor\n"));
-       fprintf(output, _(" \\i FILE        execute commands from file\n"));
        fprintf(output, _(" \\p             show the contents of the query buffer\n"));
        fprintf(output, _(" \\w [FILE]      write query buffer to file\n"));
-       fprintf(output, _(" \\o FILE        send all query results to file or |pipe\n"));
        fprintf(output, _(" \\s [FILE]      display history or save it to file\n"));
        fprintf(output, _("\n"));
 
+       fprintf(output, _("I/O Redirection\n"));
+       fprintf(output, _(" \\i FILE        execute commands from file\n"));
+       fprintf(output, _(" \\o FILE        send all query results to file or |pipe\n"));
+       fprintf(output, _("\n"));
+
        fprintf(output, _("Informational\n"));
        fprintf(output, _(" \\d [NAME]      describe table, index, sequence, or view\n"));
        fprintf(output, _(" \\d{t|i|s|v|S} [PATTERN] (add \"+\" for more detail)\n"
@@ -236,12 +239,10 @@ slashUsage(unsigned short int pager)
                        ON(pset.popt.topt.tuples_only));
        fprintf(output, _(" \\echo [STRING] write string to standard output\n"));
        fprintf(output, _(" \\qecho [STRING]  write string to query output stream (see \\o)\n"));
-       fprintf(output, _("\n"));
-
-       fprintf(output, _("HTML Output\n"));
        fprintf(output, _(" \\H             toggle HTML output mode (currently %s)\n"),
                        ON(pset.popt.topt.format == PRINT_HTML));
        fprintf(output, _(" \\T [STRING]    set HTML <table> tag attributes, or unset if none\n"));
+       fprintf(output, _("\n"));
 
        if (output != stdout)
        {