doc: Replace reference to ERRCODE_RAISE_EXCEPTION by "raise_exception"
authorMichael Paquier <[email protected]>
Wed, 1 Nov 2023 22:33:02 +0000 (07:33 +0900)
committerMichael Paquier <[email protected]>
Wed, 1 Nov 2023 22:33:38 +0000 (07:33 +0900)
This part of the documentation refers to exceptions as handled by
PL/pgSQL, and using the internal error code is confusing.

Per thinko in 66bde49d96a9.

Reported-by: Euler Taveira, Bruce Momjian
Discussion: https://postgr.es/m/[email protected]
Backpatch-through: 11

doc/src/sgml/plpgsql.sgml

index 7237a3eb6d5dfab188132ff4585c26f43af4ba34..eb00051cf8fa54cd27822f5455d3050dcdba0061 100644 (file)
@@ -3753,7 +3753,7 @@ RAISE unique_violation USING MESSAGE = 'Duplicate user ID: ' || user_id;
    <para>
     If no condition name nor SQLSTATE is specified in a
     <command>RAISE EXCEPTION</command> command, the default is to use
-    <literal>ERRCODE_RAISE_EXCEPTION</literal> (<literal>P0001</literal>).
+    <literal>raise_exception</literal> (<literal>P0001</literal>).
     If no message text is specified, the default is to use the condition
     name or SQLSTATE as message text.
    </para>