From: Tom Lane <tgl@sss.pgh.pa.us>
Date: Wed, 12 Oct 2011 17:59:30 +0000 (-0400)
Subject: Improve documentation of psql's \q command.
X-Git-Tag: REL9_0_6~43
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=606990dcf898243f635b421d5d99439cbbf8ddc2;p=postgresql

Improve documentation of psql's \q command.

The documentation neglected to explain its behavior in a script file
(it only ends execution of the script, not psql as a whole), and failed
to mention the long form \quit either.
---

diff --git a/doc/src/sgml/ref/psql-ref.sgml b/doc/src/sgml/ref/psql-ref.sgml
index 1017ef4e4b..648a6e6094 100644
--- a/doc/src/sgml/ref/psql-ref.sgml
+++ b/doc/src/sgml/ref/psql-ref.sgml
@@ -2022,10 +2022,11 @@ lo_import 152801
 
 
       <varlistentry>
-        <term><literal>\q</literal></term>
+        <term><literal>\q</literal> or <literal>\quit</literal></term>
         <listitem>
         <para>
         Quits the <application>psql</application> program.
+        In a script file, only execution of that script is terminated.
         </para>
         </listitem>
       </varlistentry>