psql documentation fixes
authorPeter Eisentraut
Wed, 5 Jul 2017 01:10:08 +0000 (21:10 -0400)
committerPeter Eisentraut
Wed, 5 Jul 2017 01:10:08 +0000 (21:10 -0400)
Update the documentation for \pset to mention
columns|linestyle|pager_min_lines.  Add various mentions of \pset
command equivalences that were previously inconsistent.

Author: Дилян Палаузов 

doc/src/sgml/ref/psql-ref.sgml
src/bin/psql/help.c

index 9faa365481be8699c3d6911845f7f7f065b77f71..c592edac60a3e86801741dc84ebecc206b28350f 100644 (file)
@@ -68,7 +68,8 @@ PostgreSQL documentation
       
       
       Switches to unaligned output mode. (The default output mode is
-      otherwise aligned.)
+      otherwise aligned.)  This is equivalent to \pset format
+      unaligned.
       
       
     
@@ -371,8 +372,8 @@ EOF
       
       
       Use separator as the
-      record separator for unaligned output. This is equivalent to the
-      \pset recordsep command.
+      record separator for unaligned output. This is equivalent to
+      \pset recordsep.
       
       
     
@@ -415,7 +416,8 @@ EOF
       
       
       Turn off printing of column names and result row count footers,
-      etc. This is equivalent to the \t command.
+      etc. This is equivalent to \t or
+      \pset tuples_only.
       
       
     
@@ -427,7 +429,7 @@ EOF
       
       Specifies options to be placed within the
       HTML table tag. See
-      \pset for details.
+      \pset tableattr for details.
       
       
     
@@ -522,8 +524,8 @@ EOF
       
       
       
-      Turn on the expanded table formatting mode. This is equivalent to the
-      \x command.
+      Turn on the expanded table formatting mode. This is equivalent to
+      \x or \pset expanded.
       
       
     
@@ -545,7 +547,8 @@ EOF
       
       
       
-      Set the field separator for unaligned output to a zero byte.
+      Set the field separator for unaligned output to a zero byte.  This is
+      equvalent to \pset fieldsep_zero.
       
       
     
@@ -557,6 +560,7 @@ EOF
       
       Set the record separator for unaligned output to a zero byte.  This is
       useful for interfacing, for example, with xargs -0.
+      This is equivalent to \pset recordsep_zero.
       
       
     
@@ -1907,9 +1911,8 @@ Tue Oct 26 21:40:57 CEST 1999
         
         
         Sets the field separator for unaligned query output. The default
-        is the vertical bar (|). See also
-        \pset for a generic way of setting output
-        options.
+        is the vertical bar (|). It is equivalent to
+        \pset fieldsep.
         
         
       
@@ -2810,8 +2813,9 @@ lo_import 152801
         
         
         There are various shortcut commands for \pset. See
-        \a\C\H,
-        \t\T, and \x.
+        \a\C\f,
+        \H\t\T,
+        and \x.
         
         
 
index 8e08da79e9ddec47aef66094e4f91190b7529233..b3dbb5946eac091535a2d210f717d83047184b8d 100644 (file)
@@ -271,9 +271,11 @@ slashUsage(unsigned short int pager)
    fprintf(output, _("  \\H                     toggle HTML output mode (currently %s)\n"),
            ON(pset.popt.topt.format == PRINT_HTML));
    fprintf(output, _("  \\pset [NAME [VALUE]]   set table output option\n"
-                     "                         (NAME := {format|border|expanded|fieldsep|fieldsep_zero|footer|null|\n"
-                     "                         numericlocale|recordsep|recordsep_zero|tuples_only|title|tableattr|pager|\n"
-                     "                         unicode_border_linestyle|unicode_column_linestyle|unicode_header_linestyle})\n"));
+                     "                         (NAME := {border|columns|expanded|fieldsep|fieldsep_zero|\n"
+                     "                         footer|format|linestyle|null|numericlocale|pager|\n"
+                     "                         pager_min_lines|recordsep|recordsep_zero|tableattr|title|\n"
+                     "                         tuples_only|unicode_border_linestyle|\n"
+                     "                         unicode_column_linestyle|unicode_header_linestyle})\n"));
    fprintf(output, _("  \\t [on|off]            show only rows (currently %s)\n"),
            ON(pset.popt.topt.tuples_only));
    fprintf(output, _("  \\T [STRING]            set HTML  tag attributes, or unset if none\n"));