mirror of
https://github.com/postgres/postgres.git
synced 2025-05-28 00:03:23 -04:00
Add some index entries for RAISE and exception handling in PL/PgSQL. Per
suggestion from Rainer Brandt.
This commit is contained in:
parent
cf1f6f98f2
commit
35878b9bc6
@ -1,5 +1,5 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/plpgsql.sgml,v 1.59 2005/02/10 05:01:07 neilc Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/plpgsql.sgml,v 1.60 2005/02/10 06:08:22 neilc Exp $
|
||||
-->
|
||||
|
||||
<chapter id="plpgsql">
|
||||
@ -1901,6 +1901,11 @@ END LOOP;
|
||||
<sect2 id="plpgsql-error-trapping">
|
||||
<title>Trapping Errors</title>
|
||||
|
||||
<indexterm>
|
||||
<primary>exceptions</primary>
|
||||
<secondary>in PL/PgSQL</secondary>
|
||||
</indexterm>
|
||||
|
||||
<para>
|
||||
By default, any error occurring in a <application>PL/pgSQL</>
|
||||
function aborts execution of the function, and indeed of the
|
||||
@ -2339,6 +2344,15 @@ COMMIT;
|
||||
<sect1 id="plpgsql-errors-and-messages">
|
||||
<title>Errors and Messages</title>
|
||||
|
||||
<indexterm>
|
||||
<primary>RAISE</primary>
|
||||
</indexterm>
|
||||
|
||||
<indexterm>
|
||||
<primary>reporting errors</primary>
|
||||
<secondary>in PL/PgSQL</secondary>
|
||||
</indexterm>
|
||||
|
||||
<para>
|
||||
Use the <command>RAISE</command> statement to report messages and
|
||||
raise errors.
|
||||
|
Loading…
x
Reference in New Issue
Block a user