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
8d2e9a9d
Commit
8d2e9a9d
authored
Dec 17, 2012
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc: Put PL/pgSQL RAISE USING keywords into a list
Karl O. Pinc
parent
6919b7e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
14 deletions
+38
-14
doc/src/sgml/plpgsql.sgml
doc/src/sgml/plpgsql.sgml
+38
-14
No files found.
doc/src/sgml/plpgsql.sgml
View file @
8d2e9a9d
...
@@ -3288,20 +3288,44 @@ RAISE NOTICE 'Calling cs_create_job(%)', v_job_id;
...
@@ -3288,20 +3288,44 @@ RAISE NOTICE 'Calling cs_create_job(%)', v_job_id;
You can attach additional information to the error report by writing
You can attach additional information to the error report by writing
<literal>USING</> followed by <replaceable
<literal>USING</> followed by <replaceable
class="parameter">option</replaceable> = <replaceable
class="parameter">option</replaceable> = <replaceable
class="parameter">expression</replaceable> items. The allowed
class="parameter">expression</replaceable> items. Each
<replaceable class="parameter">option</replaceable> keywords are
<replaceable class="parameter">expression</replaceable> can be any
<literal>MESSAGE</>, <literal>DETAIL</>, <literal>HINT</>, and
string-valued expression. The allowed <replaceable
<literal>ERRCODE</>, while each <replaceable
class="parameter">option</replaceable> key words are:
class="parameter">expression</replaceable> can be any string-valued
expression.
<variablelist id="raise-using-options">
<literal>MESSAGE</> sets the error message text (this option can't
<varlistentry>
be used in the form of <command>RAISE</> that includes a format
<term><literal>MESSAGE</literal></term>
string before <literal>USING</>).
<listitem>
<literal>DETAIL</> supplies an error detail message, while
<para>Sets the error message text. This option can't be used in the
<literal>HINT</> supplies a hint message.
form of <command>RAISE</> that includes a format string
<literal>ERRCODE</> specifies the error code (SQLSTATE) to report,
before <literal>USING</>.</para>
either by condition name as shown in <xref linkend="errcodes-appendix">,
</listitem>
or directly as a five-character SQLSTATE code.
</varlistentry>
<varlistentry>
<term><literal>DETAIL</literal></term>
<listitem>
<para>Supplies an error detail message.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>HINT</literal></term>
<listitem>
<para>Supplies a hint message.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>ERRCODE</literal></term>
<listitem>
<para>Specifies the error code (SQLSTATE) to report, either by condition
name, as shown in <xref linkend="errcodes-appendix">, or directly as a
five-character SQLSTATE code.</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</para>
<para>
<para>
...
...
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