Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc3ad1e8

Browse files
committed
Improve accuracy of ON_ERROR_STOP documentation.
Per a gripe from Tom Lane.
1 parent85ea933 commitc3ad1e8

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

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

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2770,18 +2770,16 @@ bar
27702770
<term><varname>ON_ERROR_STOP</varname></term>
27712771
<listitem>
27722772
<para>
2773-
By default, if non-interactive scripts encounter an error, such
2774-
as a malformed <acronym>SQL</acronym> command or internal
2775-
meta-command, processing continues. This has been the
2776-
traditional behavior of <application>psql</application> but it
2777-
is sometimes not desirable. If this variable is set, script
2778-
processing will immediately terminate. If the script was called
2779-
from another script it will terminate in the same fashion. If
2780-
the outermost script was not called from an interactive
2781-
<application>psql</application> session but rather using the
2782-
<option>-f</option> option, <application>psql</application> will
2783-
return error code 3, to distinguish this case from fatal error
2784-
conditions (error code 1).
2773+
By default, command processing continues after an error. When this
2774+
variale is set, it will instead stop immediately. In interactive mode,
2775+
<application>psql</application> will return to the command prompt;
2776+
otherwise, <application>psql</application> will exit, returning
2777+
error code 3 to distinguish this case from fatal error
2778+
conditions, which are reported using error code 1. In either case,
2779+
any currently running scripts (the toplevel script, if any, and any
2780+
other scripts which it may have in invoked) will be terminated
2781+
immediately. If the toplevel command string contained multiple SQL
2782+
commands, processing will stop with the current command.
27852783
</para>
27862784
</listitem>
27872785
</varlistentry>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp