Skip to content

Commit 606990d

Browse files
committed
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.
1 parent 55800b6 commit 606990d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2022,10 +2022,11 @@ lo_import 152801
20222022

20232023

20242024
<varlistentry>
2025-
<term><literal>\q</literal></term>
2025+
<term><literal>\q</literal> or <literal>\quit</literal></term>
20262026
<listitem>
20272027
<para>
20282028
Quits the <application>psql</application> program.
2029+
In a script file, only execution of that script is terminated.
20292030
</para>
20302031
</listitem>
20312032
</varlistentry>

0 commit comments

Comments
 (0)