Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
c3ad1e8d
Commit
c3ad1e8d
authored
Jun 14, 2011
by
Robert Haas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve accuracy of ON_ERROR_STOP documentation.
Per a gripe from Tom Lane.
parent
85ea9338
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
12 deletions
+10
-12
doc/src/sgml/ref/psql-ref.sgml
doc/src/sgml/ref/psql-ref.sgml
+10
-12
No files found.
doc/src/sgml/ref/psql-ref.sgml
View file @
c3ad1e8d
...
@@ -2770,18 +2770,16 @@ bar
...
@@ -2770,18 +2770,16 @@ bar
<term><varname>ON_ERROR_STOP</varname></term>
<term><varname>ON_ERROR_STOP</varname></term>
<listitem>
<listitem>
<para>
<para>
By default, if non-interactive scripts encounter an error, such
By default, command processing continues after an error. When this
as a malformed <acronym>SQL</acronym> command or internal
variale is set, it will instead stop immediately. In interactive mode,
meta-command, processing continues. This has been the
<application>psql</application> will return to the command prompt;
traditional behavior of <application>psql</application> but it
otherwise, <application>psql</application> will exit, returning
is sometimes not desirable. If this variable is set, script
error code 3 to distinguish this case from fatal error
processing will immediately terminate. If the script was called
conditions, which are reported using error code 1. In either case,
from another script it will terminate in the same fashion. If
any currently running scripts (the toplevel script, if any, and any
the outermost script was not called from an interactive
other scripts which it may have in invoked) will be terminated
<application>psql</application> session but rather using the
immediately. If the toplevel command string contained multiple SQL
<option>-f</option> option, <application>psql</application> will
commands, processing will stop with the current command.
return error code 3, to distinguish this case from fatal error
conditions (error code 1).
</para>
</para>
</listitem>
</listitem>
</varlistentry>
</varlistentry>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment