PostgreSQL RAISE
The Weird and The Wonderful
2
Posts
2
Posters
0
Views
1
Watching
-
PostgreSQL: Documentation: 9.1: Errors and Messages[^]
RAISE EXCEPTION
is likethrow
. The others are just like some logging facility (as far as I can tell) Confusing, I think. :~Actually looks like a pretty standard approach for SQL databases. The SQLSTATE stuff is supported by Postgress, MySQL, MariaDB, SQL Server, surfaced by ODBC, DB2, etc. It allows a query or procedure to return errors and/or informational messages. An error indicates processing could not complete, and informational message may, for example, warn of data truncation but allow the task to finish.
"If you don't fail at least 90 percent of the time, you're not aiming high enough." Alan Kay.