Refer to SQLSTATE output in messages to check the SQL statements used in applications and the execution results of commands used during development.
See
Refer to Messages for information on the message content and number.
Refer to "PostgreSQL Error Codes" under "Appendixes" in the PostgreSQL Documentation for information on SQLSTATE.