Skip to main content

Error Codes

This document describes the error codes you may encounter when working with the CloudBase PostgreSQL database.

Common SQLSTATE Error Code Reference​

Here are the most frequently encountered SQLSTATE error codes:

SQLSTATEError NameDescription
23505unique_violationUnique constraint violation
23503foreign_key_violationForeign key violation
23502not_null_violationNot-null violation
42P01undefined_tableTable not found
42703undefined_columnColumn not found
42601syntax_errorSQL syntax error
57014query_canceledQuery canceled

Full Error Code Reference​

For the complete list of PostgreSQL SQLSTATE error codes, refer to the official documentation:

💡 Tip
  • When encountering an error, record the full error message (including SQLSTATE code and description)
  • Use the first two characters of the SQLSTATE code to quickly identify the error category
  • If you cannot resolve the issue, contact Technical Support for help