Skip to content

Commit 4210b55

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 783e816 commit 4210b55

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
@@ -3942,7 +3942,7 @@ RAISE unique_violation USING MESSAGE = 'Duplicate user ID: ' || user_id;
39423942
<para>
39433943
If no condition name nor SQLSTATE is specified in a
39443944
<command>RAISE EXCEPTION</command> command, the default is to use
3945-
<literal>ERRCODE_RAISE_EXCEPTION</literal> (<literal>P0001</literal>).
3945+
<literal>raise_exception</literal> (<literal>P0001</literal>).
39463946
If no message text is specified, the default is to use the condition
39473947
name or SQLSTATE as message text.
39483948
</para>

0 commit comments

Comments
 (0)