aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2023-11-02 07:33:02 +0900
committerMichael Paquier <michael@paquier.xyz>2023-11-02 07:33:32 +0900
commitbbbf1510bc414ce335aa778f0301dc46ad6a6bfd (patch)
treed096124d89e08562476b75008ca5d0c669624d63
parentd21b1706a900d35e7be513080fe9e0a32c43554c (diff)
downloadpostgresql-bbbf1510bc414ce335aa778f0301dc46ad6a6bfd.tar.gz
postgresql-bbbf1510bc414ce335aa778f0301dc46ad6a6bfd.zip
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 66bde49d96a9. Reported-by: Euler Taveira, Bruce Momjian Discussion: https://postgr.es/m/ZUEUnLevXyW7DlCs@momjian.us Backpatch-through: 11
-rw-r--r--doc/src/sgml/plpgsql.sgml2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/src/sgml/plpgsql.sgml b/doc/src/sgml/plpgsql.sgml
index e48d4071f24..b18e242fde8 100644
--- a/doc/src/sgml/plpgsql.sgml
+++ b/doc/src/sgml/plpgsql.sgml
@@ -3915,7 +3915,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>