Skip to content

Commit 616de5b

Browse files
committed
doc: Replace reference to ERRCODE_RAISE_EXCEPTION by "raise_exception"
This part of the documentation refers to exceptions as handled by PL/pgSQL, and using the internal error code is confusing. Per thinko in 66bde49. Reported-by: Euler Taveira, Bruce Momjian Discussion: https://postgr.es/m/ZUEUnLevXyW7DlCs@momjian.us Backpatch-through: 11
1 parent ff81b9b commit 616de5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/src/sgml/plpgsql.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3759,7 +3759,7 @@ RAISE unique_violation USING MESSAGE = 'Duplicate user ID: ' || user_id;
37593759
<para>
37603760
If no condition name nor SQLSTATE is specified in a
37613761
<command>RAISE EXCEPTION</command> command, the default is to use
3762-
<literal>ERRCODE_RAISE_EXCEPTION</literal> (<literal>P0001</literal>).
3762+
<literal>raise_exception</literal> (<literal>P0001</literal>).
37633763
If no message text is specified, the default is to use the condition
37643764
name or SQLSTATE as message text.
37653765
</para>

0 commit comments

Comments
 (0)