docs: Improve documentation of \pset without arguments.
authorRobert Haas <rhaas@postgresql.org>
Thu, 24 Jul 2014 12:06:54 +0000 (08:06 -0400)
committerRobert Haas <rhaas@postgresql.org>
Thu, 24 Jul 2014 12:06:54 +0000 (08:06 -0400)
The syntax summary previously failed to clarify that the first
argument is also optional.  The textual description did mention it,
but all the way at the bottom.  It fits better with the command
overview, so move it there, and fix the summary also.

Dilip Kumar, reviewed by Fabien Coelho

doc/src/sgml/ref/psql-ref.sgml

index fa0d6f2ec908d5b5d2d3f79fb0353219df00889b..133390ab6372d2db2d8bb80f873eb012f50f1527 100644 (file)
@@ -1956,7 +1956,7 @@ lo_import 152801
       </varlistentry>
 
       <varlistentry>
-        <term><literal>\pset <replaceable class="parameter">option</replaceable> [ <replaceable class="parameter">value</replaceable> ]</literal></term>
+        <term><literal>\pset [ <replaceable class="parameter">option</replaceable> [ <replaceable class="parameter">value</replaceable> ] ]</literal></term>
 
         <listitem>
         <para>
@@ -1972,6 +1972,11 @@ lo_import 152801
         the current setting being displayed.
         </para>
 
+        <para>
+        <command>\pset</command> without any arguments displays the current status
+        of all printing options.
+        </para>
+
         <para>
         Adjustable printing options are:
         <variablelist>
@@ -2311,11 +2316,6 @@ lo_import 152801
         </para>
         </tip>
 
-        <para>
-        <command>\pset</command> without any arguments displays the current status
-        of all printing options.
-        </para>
-
         </listitem>
       </varlistentry>