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
If no condition name nor SQLSTATE is specified in a
RAISE EXCEPTION command, the default is to use
- ERRCODE_RAISE_EXCEPTION (P0001).
+ raise_exception (P0001).
If no message text is specified, the default is to use the condition
name or SQLSTATE as message text.