Skip to content

PgSqlStates

Namespace: Ankus

Assembly: Ankus.Runtime.dll

Provides named PostgreSQL SQLSTATE strings for error reporting, diagnostics and exception filters.

public static class PgSqlStates

Includes the union of the PostgreSQL 13 through 18 and 19 RC1 catalogs, including aliases and retired names. A constant does not imply that its associated server feature exists in every PostgreSQL version. These names supplement the string-based diagnostic APIs; extension-specific SQLSTATE strings remain supported.

Inheritance: object

The PostgreSQL active_sql_transaction SQLSTATE (25001).

public const string ActiveSqlTransaction = "25001"

PostgreSQL macro ERRCODE_ACTIVE_SQL_TRANSACTION.

The PostgreSQL admin_shutdown SQLSTATE (57P01).

public const string AdminShutdown = "57P01"

PostgreSQL macro ERRCODE_ADMIN_SHUTDOWN.

The PostgreSQL ambiguous_alias SQLSTATE (42P09).

public const string AmbiguousAlias = "42P09"

PostgreSQL macro ERRCODE_AMBIGUOUS_ALIAS.

The PostgreSQL ambiguous_column SQLSTATE (42702).

public const string AmbiguousColumn = "42702"

PostgreSQL macro ERRCODE_AMBIGUOUS_COLUMN.

The PostgreSQL ambiguous_function SQLSTATE (42725).

public const string AmbiguousFunction = "42725"

PostgreSQL macro ERRCODE_AMBIGUOUS_FUNCTION.

The PostgreSQL ambiguous_parameter SQLSTATE (42P08).

public const string AmbiguousParameter = "42P08"

PostgreSQL macro ERRCODE_AMBIGUOUS_PARAMETER.

The PostgreSQL array_element_error SQLSTATE (2202E).

public const string ArrayElementError = "2202E"

PostgreSQL macro ERRCODE_ARRAY_ELEMENT_ERROR.

The PostgreSQL array_subscript_error SQLSTATE (2202E).

public const string ArraySubscriptError = "2202E"

PostgreSQL macro ERRCODE_ARRAY_SUBSCRIPT_ERROR.

The PostgreSQL assert_failure SQLSTATE (P0004).

public const string AssertFailure = "P0004"

PostgreSQL macro ERRCODE_ASSERT_FAILURE.

The PostgreSQL bad_copy_file_format SQLSTATE (22P04).

public const string BadCopyFileFormat = "22P04"

PostgreSQL macro ERRCODE_BAD_COPY_FILE_FORMAT.

The PostgreSQL branch_transaction_already_active SQLSTATE (25002).

public const string BranchTransactionAlreadyActive = "25002"

PostgreSQL macro ERRCODE_BRANCH_TRANSACTION_ALREADY_ACTIVE.

The PostgreSQL cannot_coerce SQLSTATE (42846).

public const string CannotCoerce = "42846"

PostgreSQL macro ERRCODE_CANNOT_COERCE.

The PostgreSQL cannot_connect_now SQLSTATE (57P03).

public const string CannotConnectNow = "57P03"

PostgreSQL macro ERRCODE_CANNOT_CONNECT_NOW.

The PostgreSQL cant_change_runtime_param SQLSTATE (55P02).

public const string CantChangeRuntimeParam = "55P02"

PostgreSQL macro ERRCODE_CANT_CHANGE_RUNTIME_PARAM.

The PostgreSQL cardinality_violation SQLSTATE (21000).

public const string CardinalityViolation = "21000"

PostgreSQL macro ERRCODE_CARDINALITY_VIOLATION.

The PostgreSQL case_not_found SQLSTATE (20000).

public const string CaseNotFound = "20000"

PostgreSQL macro ERRCODE_CASE_NOT_FOUND.

The PostgreSQL character_not_in_repertoire SQLSTATE (22021).

public const string CharacterNotInRepertoire = "22021"

PostgreSQL macro ERRCODE_CHARACTER_NOT_IN_REPERTOIRE.

The PostgreSQL check_violation SQLSTATE (23514).

public const string CheckViolation = "23514"

PostgreSQL macro ERRCODE_CHECK_VIOLATION.

The PostgreSQL collation_mismatch SQLSTATE (42P21).

public const string CollationMismatch = "42P21"

PostgreSQL macro ERRCODE_COLLATION_MISMATCH.

The PostgreSQL config_file_error SQLSTATE (F0000).

public const string ConfigFileError = "F0000"

PostgreSQL macro ERRCODE_CONFIG_FILE_ERROR.

The PostgreSQL configuration_limit_exceeded SQLSTATE (53400).

public const string ConfigurationLimitExceeded = "53400"

PostgreSQL macro ERRCODE_CONFIGURATION_LIMIT_EXCEEDED.

The PostgreSQL connection_does_not_exist SQLSTATE (08003).

public const string ConnectionDoesNotExist = "08003"

PostgreSQL macro ERRCODE_CONNECTION_DOES_NOT_EXIST.

The PostgreSQL connection_exception SQLSTATE (08000).

public const string ConnectionException = "08000"

PostgreSQL macro ERRCODE_CONNECTION_EXCEPTION.

The PostgreSQL connection_failure SQLSTATE (08006).

public const string ConnectionFailure = "08006"

PostgreSQL macro ERRCODE_CONNECTION_FAILURE.

The PostgreSQL crash_shutdown SQLSTATE (57P02).

public const string CrashShutdown = "57P02"

PostgreSQL macro ERRCODE_CRASH_SHUTDOWN.

The PostgreSQL data_corrupted SQLSTATE (XX001).

public const string DataCorrupted = "XX001"

PostgreSQL macro ERRCODE_DATA_CORRUPTED.

The PostgreSQL data_exception SQLSTATE (22000).

public const string DataException = "22000"

PostgreSQL macro ERRCODE_DATA_EXCEPTION.

The PostgreSQL database_dropped SQLSTATE (57P04).

public const string DatabaseDropped = "57P04"

PostgreSQL macro ERRCODE_DATABASE_DROPPED.

The PostgreSQL datatype_mismatch SQLSTATE (42804).

public const string DatatypeMismatch = "42804"

PostgreSQL macro ERRCODE_DATATYPE_MISMATCH.

The PostgreSQL datetime_field_overflow SQLSTATE (22008).

public const string DatetimeFieldOverflow = "22008"

PostgreSQL macro ERRCODE_DATETIME_FIELD_OVERFLOW.

The PostgreSQL datetime_value_out_of_range SQLSTATE (22008).

public const string DatetimeValueOutOfRange = "22008"

PostgreSQL macro ERRCODE_DATETIME_VALUE_OUT_OF_RANGE.

The PostgreSQL deadlock_detected SQLSTATE (40P01).

public const string DeadlockDetected = "40P01"

PostgreSQL macro ERRCODE_T_R_DEADLOCK_DETECTED.

The PostgreSQL dependent_objects_still_exist SQLSTATE (2BP01).

public const string DependentObjectsStillExist = "2BP01"

PostgreSQL macro ERRCODE_DEPENDENT_OBJECTS_STILL_EXIST.

The PostgreSQL dependent_privilege_descriptors_still_exist SQLSTATE (2B000).

public const string DependentPrivilegeDescriptorsStillExist = "2B000"

PostgreSQL macro ERRCODE_DEPENDENT_PRIVILEGE_DESCRIPTORS_STILL_EXIST.

The PostgreSQL diagnostics_exception SQLSTATE (0Z000).

public const string DiagnosticsException = "0Z000"

PostgreSQL macro ERRCODE_DIAGNOSTICS_EXCEPTION.

The PostgreSQL disk_full SQLSTATE (53100).

public const string DiskFull = "53100"

PostgreSQL macro ERRCODE_DISK_FULL.

The PostgreSQL division_by_zero SQLSTATE (22012).

public const string DivisionByZero = "22012"

PostgreSQL macro ERRCODE_DIVISION_BY_ZERO.

The PostgreSQL duplicate_alias SQLSTATE (42712).

public const string DuplicateAlias = "42712"

PostgreSQL macro ERRCODE_DUPLICATE_ALIAS.

The PostgreSQL duplicate_column SQLSTATE (42701).

public const string DuplicateColumn = "42701"

PostgreSQL macro ERRCODE_DUPLICATE_COLUMN.

The PostgreSQL duplicate_cursor SQLSTATE (42P03).

public const string DuplicateCursor = "42P03"

PostgreSQL macro ERRCODE_DUPLICATE_CURSOR.

The PostgreSQL duplicate_database SQLSTATE (42P04).

public const string DuplicateDatabase = "42P04"

PostgreSQL macro ERRCODE_DUPLICATE_DATABASE.

The PostgreSQL duplicate_file SQLSTATE (58P02).

public const string DuplicateFile = "58P02"

PostgreSQL macro ERRCODE_DUPLICATE_FILE.

The PostgreSQL duplicate_function SQLSTATE (42723).

public const string DuplicateFunction = "42723"

PostgreSQL macro ERRCODE_DUPLICATE_FUNCTION.

The PostgreSQL duplicate_json_object_key_value SQLSTATE (22030).

public const string DuplicateJsonObjectKeyValue = "22030"

PostgreSQL macro ERRCODE_DUPLICATE_JSON_OBJECT_KEY_VALUE.

The PostgreSQL duplicate_object SQLSTATE (42710).

public const string DuplicateObject = "42710"

PostgreSQL macro ERRCODE_DUPLICATE_OBJECT.

The PostgreSQL duplicate_prepared_statement SQLSTATE (42P05).

public const string DuplicatePreparedStatement = "42P05"

PostgreSQL macro ERRCODE_DUPLICATE_PSTATEMENT.

The PostgreSQL duplicate_schema SQLSTATE (42P06).

public const string DuplicateSchema = "42P06"

PostgreSQL macro ERRCODE_DUPLICATE_SCHEMA.

The PostgreSQL duplicate_table SQLSTATE (42P07).

public const string DuplicateTable = "42P07"

PostgreSQL macro ERRCODE_DUPLICATE_TABLE.

The PostgreSQL error_in_assignment SQLSTATE (22005).

public const string ErrorInAssignment = "22005"

PostgreSQL macro ERRCODE_ERROR_IN_ASSIGNMENT.

The PostgreSQL escape_character_conflict SQLSTATE (2200B).

public const string EscapeCharacterConflict = "2200B"

PostgreSQL macro ERRCODE_ESCAPE_CHARACTER_CONFLICT.

The PostgreSQL exclusion_violation SQLSTATE (23P01).

public const string ExclusionViolation = "23P01"

PostgreSQL macro ERRCODE_EXCLUSION_VIOLATION.

The PostgreSQL containing_sql_not_permitted SQLSTATE (38001).

public const string ExternalRoutineContainingSqlNotPermitted = "38001"

PostgreSQL macro ERRCODE_E_R_E_CONTAINING_SQL_NOT_PERMITTED.

The PostgreSQL external_routine_exception SQLSTATE (38000).

public const string ExternalRoutineException = "38000"

PostgreSQL macro ERRCODE_EXTERNAL_ROUTINE_EXCEPTION.

ExternalRoutineInvocationEventTriggerProtocolViolated

Section titled “ExternalRoutineInvocationEventTriggerProtocolViolated”

The PostgreSQL event_trigger_protocol_violated SQLSTATE (39P03).

public const string ExternalRoutineInvocationEventTriggerProtocolViolated = "39P03"

PostgreSQL macro ERRCODE_E_R_I_E_EVENT_TRIGGER_PROTOCOL_VIOLATED.

The PostgreSQL external_routine_invocation_exception SQLSTATE (39000).

public const string ExternalRoutineInvocationException = "39000"

PostgreSQL macro ERRCODE_EXTERNAL_ROUTINE_INVOCATION_EXCEPTION.

ExternalRoutineInvocationInvalidSqlStateReturned

Section titled “ExternalRoutineInvocationInvalidSqlStateReturned”

The PostgreSQL invalid_sqlstate_returned SQLSTATE (39001).

public const string ExternalRoutineInvocationInvalidSqlStateReturned = "39001"

PostgreSQL macro ERRCODE_E_R_I_E_INVALID_SQLSTATE_RETURNED.

ExternalRoutineInvocationNullValueNotAllowed

Section titled “ExternalRoutineInvocationNullValueNotAllowed”

The PostgreSQL null_value_not_allowed SQLSTATE (39004).

public const string ExternalRoutineInvocationNullValueNotAllowed = "39004"

PostgreSQL macro ERRCODE_E_R_I_E_NULL_VALUE_NOT_ALLOWED.

ExternalRoutineInvocationSrfProtocolViolated

Section titled “ExternalRoutineInvocationSrfProtocolViolated”

The PostgreSQL srf_protocol_violated SQLSTATE (39P02).

public const string ExternalRoutineInvocationSrfProtocolViolated = "39P02"

PostgreSQL macro ERRCODE_E_R_I_E_SRF_PROTOCOL_VIOLATED.

ExternalRoutineInvocationTriggerProtocolViolated

Section titled “ExternalRoutineInvocationTriggerProtocolViolated”

The PostgreSQL trigger_protocol_violated SQLSTATE (39P01).

public const string ExternalRoutineInvocationTriggerProtocolViolated = "39P01"

PostgreSQL macro ERRCODE_E_R_I_E_TRIGGER_PROTOCOL_VIOLATED.

ExternalRoutineModifyingSqlDataNotPermitted

Section titled “ExternalRoutineModifyingSqlDataNotPermitted”

The PostgreSQL modifying_sql_data_not_permitted SQLSTATE (38002).

public const string ExternalRoutineModifyingSqlDataNotPermitted = "38002"

PostgreSQL macro ERRCODE_E_R_E_MODIFYING_SQL_DATA_NOT_PERMITTED.

ExternalRoutineProhibitedSqlStatementAttempted

Section titled “ExternalRoutineProhibitedSqlStatementAttempted”

The PostgreSQL prohibited_sql_statement_attempted SQLSTATE (38003).

public const string ExternalRoutineProhibitedSqlStatementAttempted = "38003"

PostgreSQL macro ERRCODE_E_R_E_PROHIBITED_SQL_STATEMENT_ATTEMPTED.

The PostgreSQL reading_sql_data_not_permitted SQLSTATE (38004).

public const string ExternalRoutineReadingSqlDataNotPermitted = "38004"

PostgreSQL macro ERRCODE_E_R_E_READING_SQL_DATA_NOT_PERMITTED.

The PostgreSQL fdw_column_name_not_found SQLSTATE (HV005).

public const string FdwColumnNameNotFound = "HV005"

PostgreSQL macro ERRCODE_FDW_COLUMN_NAME_NOT_FOUND.

The PostgreSQL fdw_dynamic_parameter_value_needed SQLSTATE (HV002).

public const string FdwDynamicParameterValueNeeded = "HV002"

PostgreSQL macro ERRCODE_FDW_DYNAMIC_PARAMETER_VALUE_NEEDED.

The PostgreSQL fdw_error SQLSTATE (HV000).

public const string FdwError = "HV000"

PostgreSQL macro ERRCODE_FDW_ERROR.

The PostgreSQL fdw_function_sequence_error SQLSTATE (HV010).

public const string FdwFunctionSequenceError = "HV010"

PostgreSQL macro ERRCODE_FDW_FUNCTION_SEQUENCE_ERROR.

The PostgreSQL fdw_inconsistent_descriptor_information SQLSTATE (HV021).

public const string FdwInconsistentDescriptorInformation = "HV021"

PostgreSQL macro ERRCODE_FDW_INCONSISTENT_DESCRIPTOR_INFORMATION.

The PostgreSQL fdw_invalid_attribute_value SQLSTATE (HV024).

public const string FdwInvalidAttributeValue = "HV024"

PostgreSQL macro ERRCODE_FDW_INVALID_ATTRIBUTE_VALUE.

The PostgreSQL fdw_invalid_column_name SQLSTATE (HV007).

public const string FdwInvalidColumnName = "HV007"

PostgreSQL macro ERRCODE_FDW_INVALID_COLUMN_NAME.

The PostgreSQL fdw_invalid_column_number SQLSTATE (HV008).

public const string FdwInvalidColumnNumber = "HV008"

PostgreSQL macro ERRCODE_FDW_INVALID_COLUMN_NUMBER.

The PostgreSQL fdw_invalid_data_type SQLSTATE (HV004).

public const string FdwInvalidDataType = "HV004"

PostgreSQL macro ERRCODE_FDW_INVALID_DATA_TYPE.

The PostgreSQL fdw_invalid_data_type_descriptors SQLSTATE (HV006).

public const string FdwInvalidDataTypeDescriptors = "HV006"

PostgreSQL macro ERRCODE_FDW_INVALID_DATA_TYPE_DESCRIPTORS.

The PostgreSQL fdw_invalid_descriptor_field_identifier SQLSTATE (HV091).

public const string FdwInvalidDescriptorFieldIdentifier = "HV091"

PostgreSQL macro ERRCODE_FDW_INVALID_DESCRIPTOR_FIELD_IDENTIFIER.

The PostgreSQL fdw_invalid_handle SQLSTATE (HV00B).

public const string FdwInvalidHandle = "HV00B"

PostgreSQL macro ERRCODE_FDW_INVALID_HANDLE.

The PostgreSQL fdw_invalid_option_index SQLSTATE (HV00C).

public const string FdwInvalidOptionIndex = "HV00C"

PostgreSQL macro ERRCODE_FDW_INVALID_OPTION_INDEX.

The PostgreSQL fdw_invalid_option_name SQLSTATE (HV00D).

public const string FdwInvalidOptionName = "HV00D"

PostgreSQL macro ERRCODE_FDW_INVALID_OPTION_NAME.

The PostgreSQL fdw_invalid_string_format SQLSTATE (HV00A).

public const string FdwInvalidStringFormat = "HV00A"

PostgreSQL macro ERRCODE_FDW_INVALID_STRING_FORMAT.

The PostgreSQL fdw_invalid_string_length_or_buffer_length SQLSTATE (HV090).

public const string FdwInvalidStringLengthOrBufferLength = "HV090"

PostgreSQL macro ERRCODE_FDW_INVALID_STRING_LENGTH_OR_BUFFER_LENGTH.

The PostgreSQL fdw_invalid_use_of_null_pointer SQLSTATE (HV009).

public const string FdwInvalidUseOfNullPointer = "HV009"

PostgreSQL macro ERRCODE_FDW_INVALID_USE_OF_NULL_POINTER.

The PostgreSQL fdw_no_schemas SQLSTATE (HV00P).

public const string FdwNoSchemas = "HV00P"

PostgreSQL macro ERRCODE_FDW_NO_SCHEMAS.

The PostgreSQL fdw_option_name_not_found SQLSTATE (HV00J).

public const string FdwOptionNameNotFound = "HV00J"

PostgreSQL macro ERRCODE_FDW_OPTION_NAME_NOT_FOUND.

The PostgreSQL fdw_out_of_memory SQLSTATE (HV001).

public const string FdwOutOfMemory = "HV001"

PostgreSQL macro ERRCODE_FDW_OUT_OF_MEMORY.

The PostgreSQL fdw_reply_handle SQLSTATE (HV00K).

public const string FdwReplyHandle = "HV00K"

PostgreSQL macro ERRCODE_FDW_REPLY_HANDLE.

The PostgreSQL fdw_schema_not_found SQLSTATE (HV00Q).

public const string FdwSchemaNotFound = "HV00Q"

PostgreSQL macro ERRCODE_FDW_SCHEMA_NOT_FOUND.

The PostgreSQL fdw_table_not_found SQLSTATE (HV00R).

public const string FdwTableNotFound = "HV00R"

PostgreSQL macro ERRCODE_FDW_TABLE_NOT_FOUND.

The PostgreSQL fdw_too_many_handles SQLSTATE (HV014).

public const string FdwTooManyHandles = "HV014"

PostgreSQL macro ERRCODE_FDW_TOO_MANY_HANDLES.

The PostgreSQL fdw_unable_to_create_execution SQLSTATE (HV00L).

public const string FdwUnableToCreateExecution = "HV00L"

PostgreSQL macro ERRCODE_FDW_UNABLE_TO_CREATE_EXECUTION.

The PostgreSQL fdw_unable_to_create_reply SQLSTATE (HV00M).

public const string FdwUnableToCreateReply = "HV00M"

PostgreSQL macro ERRCODE_FDW_UNABLE_TO_CREATE_REPLY.

The PostgreSQL fdw_unable_to_establish_connection SQLSTATE (HV00N).

public const string FdwUnableToEstablishConnection = "HV00N"

PostgreSQL macro ERRCODE_FDW_UNABLE_TO_ESTABLISH_CONNECTION.

The PostgreSQL feature_not_supported SQLSTATE (0A000).

public const string FeatureNotSupported = "0A000"

PostgreSQL macro ERRCODE_FEATURE_NOT_SUPPORTED.

The PostgreSQL file_name_too_long SQLSTATE (58P03).

public const string FileNameTooLong = "58P03"

PostgreSQL macro ERRCODE_FILE_NAME_TOO_LONG. Present in the PostgreSQL 18, 19 RC1 source catalogs.

The PostgreSQL floating_point_exception SQLSTATE (22P01).

public const string FloatingPointException = "22P01"

PostgreSQL macro ERRCODE_FLOATING_POINT_EXCEPTION.

The PostgreSQL foreign_key_violation SQLSTATE (23503).

public const string ForeignKeyViolation = "23503"

PostgreSQL macro ERRCODE_FOREIGN_KEY_VIOLATION.

The PostgreSQL generated_always SQLSTATE (428C9).

public const string GeneratedAlways = "428C9"

PostgreSQL macro ERRCODE_GENERATED_ALWAYS.

The PostgreSQL grouping_error SQLSTATE (42803).

public const string GroupingError = "42803"

PostgreSQL macro ERRCODE_GROUPING_ERROR.

The PostgreSQL held_cursor_requires_same_isolation_level SQLSTATE (25008).

public const string HeldCursorRequiresSameIsolationLevel = "25008"

PostgreSQL macro ERRCODE_HELD_CURSOR_REQUIRES_SAME_ISOLATION_LEVEL.

The PostgreSQL idle_in_transaction_session_timeout SQLSTATE (25P03).

public const string IdleInTransactionSessionTimeout = "25P03"

PostgreSQL macro ERRCODE_IDLE_IN_TRANSACTION_SESSION_TIMEOUT.

The PostgreSQL idle_session_timeout SQLSTATE (57P05).

public const string IdleSessionTimeout = "57P05"

PostgreSQL macro ERRCODE_IDLE_SESSION_TIMEOUT. Present in the PostgreSQL 14, 15, 16, 17, 18, 19 RC1 source catalogs.

The PostgreSQL in_failed_sql_transaction SQLSTATE (25P02).

public const string InFailedSqlTransaction = "25P02"

PostgreSQL macro ERRCODE_IN_FAILED_SQL_TRANSACTION.

InappropriateAccessModeForBranchTransaction

Section titled “InappropriateAccessModeForBranchTransaction”

The PostgreSQL inappropriate_access_mode_for_branch_transaction SQLSTATE (25003).

public const string InappropriateAccessModeForBranchTransaction = "25003"

PostgreSQL macro ERRCODE_INAPPROPRIATE_ACCESS_MODE_FOR_BRANCH_TRANSACTION.

InappropriateIsolationLevelForBranchTransaction

Section titled “InappropriateIsolationLevelForBranchTransaction”

The PostgreSQL inappropriate_isolation_level_for_branch_transaction SQLSTATE (25004).

public const string InappropriateIsolationLevelForBranchTransaction = "25004"

PostgreSQL macro ERRCODE_INAPPROPRIATE_ISOLATION_LEVEL_FOR_BRANCH_TRANSACTION.

The PostgreSQL indeterminate_collation SQLSTATE (42P22).

public const string IndeterminateCollation = "42P22"

PostgreSQL macro ERRCODE_INDETERMINATE_COLLATION.

The PostgreSQL indeterminate_datatype SQLSTATE (42P18).

public const string IndeterminateDatatype = "42P18"

PostgreSQL macro ERRCODE_INDETERMINATE_DATATYPE.

The PostgreSQL index_corrupted SQLSTATE (XX002).

public const string IndexCorrupted = "XX002"

PostgreSQL macro ERRCODE_INDEX_CORRUPTED.

The PostgreSQL indicator_overflow SQLSTATE (22022).

public const string IndicatorOverflow = "22022"

PostgreSQL macro ERRCODE_INDICATOR_OVERFLOW.

The PostgreSQL insufficient_privilege SQLSTATE (42501).

public const string InsufficientPrivilege = "42501"

PostgreSQL macro ERRCODE_INSUFFICIENT_PRIVILEGE.

The PostgreSQL insufficient_resources SQLSTATE (53000).

public const string InsufficientResources = "53000"

PostgreSQL macro ERRCODE_INSUFFICIENT_RESOURCES.

The PostgreSQL integrity_constraint_violation SQLSTATE (23000).

public const string IntegrityConstraintViolation = "23000"

PostgreSQL macro ERRCODE_INTEGRITY_CONSTRAINT_VIOLATION.

The PostgreSQL internal_error SQLSTATE (XX000).

public const string InternalError = "XX000"

PostgreSQL macro ERRCODE_INTERNAL_ERROR.

The PostgreSQL interval_field_overflow SQLSTATE (22015).

public const string IntervalFieldOverflow = "22015"

PostgreSQL macro ERRCODE_INTERVAL_FIELD_OVERFLOW.

The PostgreSQL invalid_argument_for_logarithm SQLSTATE (2201E).

public const string InvalidArgumentForLogarithm = "2201E"

PostgreSQL macro ERRCODE_INVALID_ARGUMENT_FOR_LOG.

The PostgreSQL invalid_argument_for_nth_value_function SQLSTATE (22016).

public const string InvalidArgumentForNthValueFunction = "22016"

PostgreSQL macro ERRCODE_INVALID_ARGUMENT_FOR_NTH_VALUE.

The PostgreSQL invalid_argument_for_ntile_function SQLSTATE (22014).

public const string InvalidArgumentForNtileFunction = "22014"

PostgreSQL macro ERRCODE_INVALID_ARGUMENT_FOR_NTILE.

The PostgreSQL invalid_argument_for_power_function SQLSTATE (2201F).

public const string InvalidArgumentForPowerFunction = "2201F"

PostgreSQL macro ERRCODE_INVALID_ARGUMENT_FOR_POWER_FUNCTION.

The PostgreSQL invalid_argument_for_sql_json_datetime_function SQLSTATE (22031).

public const string InvalidArgumentForSqlJsonDatetimeFunction = "22031"

PostgreSQL macro ERRCODE_INVALID_ARGUMENT_FOR_SQL_JSON_DATETIME_FUNCTION.

The PostgreSQL invalid_argument_for_width_bucket_function SQLSTATE (2201G).

public const string InvalidArgumentForWidthBucketFunction = "2201G"

PostgreSQL macro ERRCODE_INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION.

The PostgreSQL invalid_argument_for_xquery SQLSTATE (10608).

public const string InvalidArgumentForXQuery = "10608"

PostgreSQL macro ERRCODE_INVALID_ARGUMENT_FOR_XQUERY. Present in the PostgreSQL 18, 19 RC1 source catalogs.

The PostgreSQL invalid_authorization_specification SQLSTATE (28000).

public const string InvalidAuthorizationSpecification = "28000"

PostgreSQL macro ERRCODE_INVALID_AUTHORIZATION_SPECIFICATION.

The PostgreSQL invalid_binary_representation SQLSTATE (22P03).

public const string InvalidBinaryRepresentation = "22P03"

PostgreSQL macro ERRCODE_INVALID_BINARY_REPRESENTATION.

The PostgreSQL invalid_catalog_name SQLSTATE (3D000).

public const string InvalidCatalogName = "3D000"

PostgreSQL macro ERRCODE_INVALID_CATALOG_NAME.

The PostgreSQL invalid_character_value_for_cast SQLSTATE (22018).

public const string InvalidCharacterValueForCast = "22018"

PostgreSQL macro ERRCODE_INVALID_CHARACTER_VALUE_FOR_CAST.

The PostgreSQL invalid_column_definition SQLSTATE (42611).

public const string InvalidColumnDefinition = "42611"

PostgreSQL macro ERRCODE_INVALID_COLUMN_DEFINITION.

The PostgreSQL invalid_column_reference SQLSTATE (42P10).

public const string InvalidColumnReference = "42P10"

PostgreSQL macro ERRCODE_INVALID_COLUMN_REFERENCE.

The PostgreSQL invalid_cursor_definition SQLSTATE (42P11).

public const string InvalidCursorDefinition = "42P11"

PostgreSQL macro ERRCODE_INVALID_CURSOR_DEFINITION.

The PostgreSQL invalid_cursor_name SQLSTATE (34000).

public const string InvalidCursorName = "34000"

PostgreSQL macro ERRCODE_INVALID_CURSOR_NAME.

The PostgreSQL invalid_cursor_state SQLSTATE (24000).

public const string InvalidCursorState = "24000"

PostgreSQL macro ERRCODE_INVALID_CURSOR_STATE.

The PostgreSQL invalid_database_definition SQLSTATE (42P12).

public const string InvalidDatabaseDefinition = "42P12"

PostgreSQL macro ERRCODE_INVALID_DATABASE_DEFINITION.

The PostgreSQL invalid_datetime_format SQLSTATE (22007).

public const string InvalidDatetimeFormat = "22007"

PostgreSQL macro ERRCODE_INVALID_DATETIME_FORMAT.

The PostgreSQL invalid_escape_character SQLSTATE (22019).

public const string InvalidEscapeCharacter = "22019"

PostgreSQL macro ERRCODE_INVALID_ESCAPE_CHARACTER.

The PostgreSQL invalid_escape_octet SQLSTATE (2200D).

public const string InvalidEscapeOctet = "2200D"

PostgreSQL macro ERRCODE_INVALID_ESCAPE_OCTET.

The PostgreSQL invalid_escape_sequence SQLSTATE (22025).

public const string InvalidEscapeSequence = "22025"

PostgreSQL macro ERRCODE_INVALID_ESCAPE_SEQUENCE.

The PostgreSQL invalid_foreign_key SQLSTATE (42830).

public const string InvalidForeignKey = "42830"

PostgreSQL macro ERRCODE_INVALID_FOREIGN_KEY.

The PostgreSQL invalid_function_definition SQLSTATE (42P13).

public const string InvalidFunctionDefinition = "42P13"

PostgreSQL macro ERRCODE_INVALID_FUNCTION_DEFINITION.

The PostgreSQL invalid_grant_operation SQLSTATE (0LP01).

public const string InvalidGrantOperation = "0LP01"

PostgreSQL macro ERRCODE_INVALID_GRANT_OPERATION.

The PostgreSQL invalid_grantor SQLSTATE (0L000).

public const string InvalidGrantor = "0L000"

PostgreSQL macro ERRCODE_INVALID_GRANTOR.

The PostgreSQL invalid_indicator_parameter_value SQLSTATE (22010).

public const string InvalidIndicatorParameterValue = "22010"

PostgreSQL macro ERRCODE_INVALID_INDICATOR_PARAMETER_VALUE.

The PostgreSQL invalid_json_text SQLSTATE (22032).

public const string InvalidJsonText = "22032"

PostgreSQL macro ERRCODE_INVALID_JSON_TEXT.

The PostgreSQL invalid_locator_specification SQLSTATE (0F001).

public const string InvalidLocatorSpecification = "0F001"

PostgreSQL macro ERRCODE_L_E_INVALID_SPECIFICATION.

The PostgreSQL invalid_name SQLSTATE (42602).

public const string InvalidName = "42602"

PostgreSQL macro ERRCODE_INVALID_NAME.

The PostgreSQL invalid_object_definition SQLSTATE (42P17).

public const string InvalidObjectDefinition = "42P17"

PostgreSQL macro ERRCODE_INVALID_OBJECT_DEFINITION.

The PostgreSQL invalid_parameter_value SQLSTATE (22023).

public const string InvalidParameterValue = "22023"

PostgreSQL macro ERRCODE_INVALID_PARAMETER_VALUE.

The PostgreSQL invalid_password SQLSTATE (28P01).

public const string InvalidPassword = "28P01"

PostgreSQL macro ERRCODE_INVALID_PASSWORD.

The PostgreSQL invalid_preceding_or_following_size SQLSTATE (22013).

public const string InvalidPrecedingOrFollowingSize = "22013"

PostgreSQL macro ERRCODE_INVALID_PRECEDING_OR_FOLLOWING_SIZE.

The PostgreSQL invalid_prepared_statement_definition SQLSTATE (42P14).

public const string InvalidPreparedStatementDefinition = "42P14"

PostgreSQL macro ERRCODE_INVALID_PSTATEMENT_DEFINITION.

The PostgreSQL invalid_recursion SQLSTATE (42P19).

public const string InvalidRecursion = "42P19"

PostgreSQL macro ERRCODE_INVALID_RECURSION.

The PostgreSQL invalid_regular_expression SQLSTATE (2201B).

public const string InvalidRegularExpression = "2201B"

PostgreSQL macro ERRCODE_INVALID_REGULAR_EXPRESSION.

The PostgreSQL invalid_role_specification SQLSTATE (0P000).

public const string InvalidRoleSpecification = "0P000"

PostgreSQL macro ERRCODE_INVALID_ROLE_SPECIFICATION.

The PostgreSQL invalid_row_count_in_limit_clause SQLSTATE (2201W).

public const string InvalidRowCountInLimitClause = "2201W"

PostgreSQL macro ERRCODE_INVALID_ROW_COUNT_IN_LIMIT_CLAUSE.

The PostgreSQL invalid_row_count_in_result_offset_clause SQLSTATE (2201X).

public const string InvalidRowCountInResultOffsetClause = "2201X"

PostgreSQL macro ERRCODE_INVALID_ROW_COUNT_IN_RESULT_OFFSET_CLAUSE.

The PostgreSQL invalid_savepoint_specification SQLSTATE (3B001).

public const string InvalidSavepointSpecification = "3B001"

PostgreSQL macro ERRCODE_S_E_INVALID_SPECIFICATION.

The PostgreSQL invalid_schema_definition SQLSTATE (42P15).

public const string InvalidSchemaDefinition = "42P15"

PostgreSQL macro ERRCODE_INVALID_SCHEMA_DEFINITION.

The PostgreSQL invalid_schema_name SQLSTATE (3F000).

public const string InvalidSchemaName = "3F000"

PostgreSQL macro ERRCODE_INVALID_SCHEMA_NAME.

The PostgreSQL invalid_sql_json_subscript SQLSTATE (22033).

public const string InvalidSqlJsonSubscript = "22033"

PostgreSQL macro ERRCODE_INVALID_SQL_JSON_SUBSCRIPT.

The PostgreSQL invalid_sql_statement_name SQLSTATE (26000).

public const string InvalidSqlStatementName = "26000"

PostgreSQL macro ERRCODE_INVALID_SQL_STATEMENT_NAME.

The PostgreSQL invalid_table_definition SQLSTATE (42P16).

public const string InvalidTableDefinition = "42P16"

PostgreSQL macro ERRCODE_INVALID_TABLE_DEFINITION.

The PostgreSQL invalid_tablesample_argument SQLSTATE (2202H).

public const string InvalidTablesampleArgument = "2202H"

PostgreSQL macro ERRCODE_INVALID_TABLESAMPLE_ARGUMENT.

The PostgreSQL invalid_tablesample_repeat SQLSTATE (2202G).

public const string InvalidTablesampleRepeat = "2202G"

PostgreSQL macro ERRCODE_INVALID_TABLESAMPLE_REPEAT.

The PostgreSQL invalid_text_representation SQLSTATE (22P02).

public const string InvalidTextRepresentation = "22P02"

PostgreSQL macro ERRCODE_INVALID_TEXT_REPRESENTATION.

The PostgreSQL invalid_time_zone_displacement_value SQLSTATE (22009).

public const string InvalidTimeZoneDisplacementValue = "22009"

PostgreSQL macro ERRCODE_INVALID_TIME_ZONE_DISPLACEMENT_VALUE.

The PostgreSQL invalid_transaction_initiation SQLSTATE (0B000).

public const string InvalidTransactionInitiation = "0B000"

PostgreSQL macro ERRCODE_INVALID_TRANSACTION_INITIATION.

The PostgreSQL invalid_transaction_state SQLSTATE (25000).

public const string InvalidTransactionState = "25000"

PostgreSQL macro ERRCODE_INVALID_TRANSACTION_STATE.

The PostgreSQL invalid_transaction_termination SQLSTATE (2D000).

public const string InvalidTransactionTermination = "2D000"

PostgreSQL macro ERRCODE_INVALID_TRANSACTION_TERMINATION.

The PostgreSQL invalid_use_of_escape_character SQLSTATE (2200C).

public const string InvalidUseOfEscapeCharacter = "2200C"

PostgreSQL macro ERRCODE_INVALID_USE_OF_ESCAPE_CHARACTER.

The PostgreSQL invalid_xml_comment SQLSTATE (2200S).

public const string InvalidXmlComment = "2200S"

PostgreSQL macro ERRCODE_INVALID_XML_COMMENT.

The PostgreSQL invalid_xml_content SQLSTATE (2200N).

public const string InvalidXmlContent = "2200N"

PostgreSQL macro ERRCODE_INVALID_XML_CONTENT.

The PostgreSQL invalid_xml_document SQLSTATE (2200M).

public const string InvalidXmlDocument = "2200M"

PostgreSQL macro ERRCODE_INVALID_XML_DOCUMENT.

The PostgreSQL invalid_xml_processing_instruction SQLSTATE (2200T).

public const string InvalidXmlProcessingInstruction = "2200T"

PostgreSQL macro ERRCODE_INVALID_XML_PROCESSING_INSTRUCTION.

The PostgreSQL io_error SQLSTATE (58030).

public const string IoError = "58030"

PostgreSQL macro ERRCODE_IO_ERROR.

The PostgreSQL locator_exception SQLSTATE (0F000).

public const string LocatorException = "0F000"

PostgreSQL macro ERRCODE_LOCATOR_EXCEPTION.

The PostgreSQL lock_file_exists SQLSTATE (F0001).

public const string LockFileExists = "F0001"

PostgreSQL macro ERRCODE_LOCK_FILE_EXISTS.

The PostgreSQL lock_not_available SQLSTATE (55P03).

public const string LockNotAvailable = "55P03"

PostgreSQL macro ERRCODE_LOCK_NOT_AVAILABLE.

The PostgreSQL more_than_one_sql_json_item SQLSTATE (22034).

public const string MoreThanOneSqlJsonItem = "22034"

PostgreSQL macro ERRCODE_MORE_THAN_ONE_SQL_JSON_ITEM.

The PostgreSQL most_specific_type_mismatch SQLSTATE (2200G).

public const string MostSpecificTypeMismatch = "2200G"

PostgreSQL macro ERRCODE_MOST_SPECIFIC_TYPE_MISMATCH.

The PostgreSQL name_too_long SQLSTATE (42622).

public const string NameTooLong = "42622"

PostgreSQL macro ERRCODE_NAME_TOO_LONG.

The PostgreSQL no_active_sql_transaction SQLSTATE (25P01).

public const string NoActiveSqlTransaction = "25P01"

PostgreSQL macro ERRCODE_NO_ACTIVE_SQL_TRANSACTION.

NoActiveSqlTransactionForBranchTransaction

Section titled “NoActiveSqlTransactionForBranchTransaction”

The PostgreSQL no_active_sql_transaction_for_branch_transaction SQLSTATE (25005).

public const string NoActiveSqlTransactionForBranchTransaction = "25005"

PostgreSQL macro ERRCODE_NO_ACTIVE_SQL_TRANSACTION_FOR_BRANCH_TRANSACTION.

The PostgreSQL no_additional_dynamic_result_sets_returned SQLSTATE (02001).

public const string NoAdditionalDynamicResultSetsReturned = "02001"

PostgreSQL macro ERRCODE_NO_ADDITIONAL_DYNAMIC_RESULT_SETS_RETURNED.

The PostgreSQL no_data SQLSTATE (02000).

public const string NoData = "02000"

PostgreSQL macro ERRCODE_NO_DATA.

The PostgreSQL no_data_found SQLSTATE (P0002).

public const string NoDataFound = "P0002"

PostgreSQL macro ERRCODE_NO_DATA_FOUND.

The PostgreSQL no_sql_json_item SQLSTATE (22035).

public const string NoSqlJsonItem = "22035"

PostgreSQL macro ERRCODE_NO_SQL_JSON_ITEM.

The PostgreSQL non_numeric_sql_json_item SQLSTATE (22036).

public const string NonNumericSqlJsonItem = "22036"

PostgreSQL macro ERRCODE_NON_NUMERIC_SQL_JSON_ITEM.

The PostgreSQL non_unique_keys_in_a_json_object SQLSTATE (22037).

public const string NonUniqueKeysInAJsonObject = "22037"

PostgreSQL macro ERRCODE_NON_UNIQUE_KEYS_IN_A_JSON_OBJECT.

The PostgreSQL nonstandard_use_of_escape_character SQLSTATE (22P06).

public const string NonstandardUseOfEscapeCharacter = "22P06"

PostgreSQL macro ERRCODE_NONSTANDARD_USE_OF_ESCAPE_CHARACTER.

The PostgreSQL not_an_xml_document SQLSTATE (2200L).

public const string NotAnXmlDocument = "2200L"

PostgreSQL macro ERRCODE_NOT_AN_XML_DOCUMENT.

The PostgreSQL not_null_violation SQLSTATE (23502).

public const string NotNullViolation = "23502"

PostgreSQL macro ERRCODE_NOT_NULL_VIOLATION.

The PostgreSQL null_value_no_indicator_parameter SQLSTATE (22002).

public const string NullValueNoIndicatorParameter = "22002"

PostgreSQL macro ERRCODE_NULL_VALUE_NO_INDICATOR_PARAMETER.

The PostgreSQL null_value_not_allowed SQLSTATE (22004).

public const string NullValueNotAllowed = "22004"

PostgreSQL macro ERRCODE_NULL_VALUE_NOT_ALLOWED.

The PostgreSQL numeric_value_out_of_range SQLSTATE (22003).

public const string NumericValueOutOfRange = "22003"

PostgreSQL macro ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE.

The PostgreSQL object_in_use SQLSTATE (55006).

public const string ObjectInUse = "55006"

PostgreSQL macro ERRCODE_OBJECT_IN_USE.

The PostgreSQL object_not_in_prerequisite_state SQLSTATE (55000).

public const string ObjectNotInPrerequisiteState = "55000"

PostgreSQL macro ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE.

The PostgreSQL operator_intervention SQLSTATE (57000).

public const string OperatorIntervention = "57000"

PostgreSQL macro ERRCODE_OPERATOR_INTERVENTION.

The PostgreSQL out_of_memory SQLSTATE (53200).

public const string OutOfMemory = "53200"

PostgreSQL macro ERRCODE_OUT_OF_MEMORY.

The PostgreSQL plpgsql_error SQLSTATE (P0000).

public const string PlpgsqlError = "P0000"

PostgreSQL macro ERRCODE_PLPGSQL_ERROR.

The PostgreSQL program_limit_exceeded SQLSTATE (54000).

public const string ProgramLimitExceeded = "54000"

PostgreSQL macro ERRCODE_PROGRAM_LIMIT_EXCEEDED.

The PostgreSQL protocol_violation SQLSTATE (08P01).

public const string ProtocolViolation = "08P01"

PostgreSQL macro ERRCODE_PROTOCOL_VIOLATION.

The PostgreSQL query_canceled SQLSTATE (57014).

public const string QueryCanceled = "57014"

PostgreSQL macro ERRCODE_QUERY_CANCELED.

The PostgreSQL raise_exception SQLSTATE (P0001).

public const string RaiseException = "P0001"

PostgreSQL macro ERRCODE_RAISE_EXCEPTION.

The PostgreSQL read_only_sql_transaction SQLSTATE (25006).

public const string ReadOnlySqlTransaction = "25006"

PostgreSQL macro ERRCODE_READ_ONLY_SQL_TRANSACTION.

The PostgreSQL reserved_name SQLSTATE (42939).

public const string ReservedName = "42939"

PostgreSQL macro ERRCODE_RESERVED_NAME.

The PostgreSQL restrict_violation SQLSTATE (23001).

public const string RestrictViolation = "23001"

PostgreSQL macro ERRCODE_RESTRICT_VIOLATION.

The PostgreSQL savepoint_exception SQLSTATE (3B000).

public const string SavepointException = "3B000"

PostgreSQL macro ERRCODE_SAVEPOINT_EXCEPTION.

The PostgreSQL schema_and_data_statement_mixing_not_supported SQLSTATE (25007).

public const string SchemaAndDataStatementMixingNotSupported = "25007"

PostgreSQL macro ERRCODE_SCHEMA_AND_DATA_STATEMENT_MIXING_NOT_SUPPORTED.

The PostgreSQL sequence_generator_limit_exceeded SQLSTATE (2200H).

public const string SequenceGeneratorLimitExceeded = "2200H"

PostgreSQL macro ERRCODE_SEQUENCE_GENERATOR_LIMIT_EXCEEDED.

The PostgreSQL serialization_failure SQLSTATE (40001).

public const string SerializationFailure = "40001"

PostgreSQL macro ERRCODE_T_R_SERIALIZATION_FAILURE.

The PostgreSQL singleton_sql_json_item_required SQLSTATE (22038).

public const string SingletonSqlJsonItemRequired = "22038"

PostgreSQL macro ERRCODE_SINGLETON_SQL_JSON_ITEM_REQUIRED.

The PostgreSQL snapshot_too_old SQLSTATE (72000).

public const string SnapshotTooOld = "72000"

PostgreSQL macro ERRCODE_SNAPSHOT_TOO_OLD. Present in the PostgreSQL 13, 14, 15, 16 source catalogs.

The PostgreSQL sqlclient_unable_to_establish_sqlconnection SQLSTATE (08001).

public const string SqlClientUnableToEstablishSqlConnection = "08001"

PostgreSQL macro ERRCODE_SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION.

The PostgreSQL sql_json_array_not_found SQLSTATE (22039).

public const string SqlJsonArrayNotFound = "22039"

PostgreSQL macro ERRCODE_SQL_JSON_ARRAY_NOT_FOUND.

The PostgreSQL sql_json_item_cannot_be_cast_to_target_type SQLSTATE (2203G).

public const string SqlJsonItemCannotBeCastToTargetType = "2203G"

PostgreSQL macro ERRCODE_SQL_JSON_ITEM_CANNOT_BE_CAST_TO_TARGET_TYPE. Present in the PostgreSQL 15, 16, 17, 18, 19 RC1 source catalogs.

The PostgreSQL sql_json_member_not_found SQLSTATE (2203A).

public const string SqlJsonMemberNotFound = "2203A"

PostgreSQL macro ERRCODE_SQL_JSON_MEMBER_NOT_FOUND.

The PostgreSQL sql_json_number_not_found SQLSTATE (2203B).

public const string SqlJsonNumberNotFound = "2203B"

PostgreSQL macro ERRCODE_SQL_JSON_NUMBER_NOT_FOUND.

The PostgreSQL sql_json_object_not_found SQLSTATE (2203C).

public const string SqlJsonObjectNotFound = "2203C"

PostgreSQL macro ERRCODE_SQL_JSON_OBJECT_NOT_FOUND.

The PostgreSQL sql_json_scalar_required SQLSTATE (2203F).

public const string SqlJsonScalarRequired = "2203F"

PostgreSQL macro ERRCODE_SQL_JSON_SCALAR_REQUIRED.

The PostgreSQL sql_routine_exception SQLSTATE (2F000).

public const string SqlRoutineException = "2F000"

PostgreSQL macro ERRCODE_SQL_ROUTINE_EXCEPTION.

SqlRoutineFunctionExecutedNoReturnStatement

Section titled “SqlRoutineFunctionExecutedNoReturnStatement”

The PostgreSQL function_executed_no_return_statement SQLSTATE (2F005).

public const string SqlRoutineFunctionExecutedNoReturnStatement = "2F005"

PostgreSQL macro ERRCODE_S_R_E_FUNCTION_EXECUTED_NO_RETURN_STATEMENT.

The PostgreSQL modifying_sql_data_not_permitted SQLSTATE (2F002).

public const string SqlRoutineModifyingSqlDataNotPermitted = "2F002"

PostgreSQL macro ERRCODE_S_R_E_MODIFYING_SQL_DATA_NOT_PERMITTED.

The PostgreSQL prohibited_sql_statement_attempted SQLSTATE (2F003).

public const string SqlRoutineProhibitedSqlStatementAttempted = "2F003"

PostgreSQL macro ERRCODE_S_R_E_PROHIBITED_SQL_STATEMENT_ATTEMPTED.

The PostgreSQL reading_sql_data_not_permitted SQLSTATE (2F004).

public const string SqlRoutineReadingSqlDataNotPermitted = "2F004"

PostgreSQL macro ERRCODE_S_R_E_READING_SQL_DATA_NOT_PERMITTED.

SqlServerRejectedEstablishmentOfSqlConnection

Section titled “SqlServerRejectedEstablishmentOfSqlConnection”

The PostgreSQL sqlserver_rejected_establishment_of_sqlconnection SQLSTATE (08004).

public const string SqlServerRejectedEstablishmentOfSqlConnection = "08004"

PostgreSQL macro ERRCODE_SQLSERVER_REJECTED_ESTABLISHMENT_OF_SQLCONNECTION.

The PostgreSQL sql_statement_not_yet_complete SQLSTATE (03000).

public const string SqlStatementNotYetComplete = "03000"

PostgreSQL macro ERRCODE_SQL_STATEMENT_NOT_YET_COMPLETE.

StackedDiagnosticsAccessedWithoutActiveHandler

Section titled “StackedDiagnosticsAccessedWithoutActiveHandler”

The PostgreSQL stacked_diagnostics_accessed_without_active_handler SQLSTATE (0Z002).

public const string StackedDiagnosticsAccessedWithoutActiveHandler = "0Z002"

PostgreSQL macro ERRCODE_STACKED_DIAGNOSTICS_ACCESSED_WITHOUT_ACTIVE_HANDLER.

The PostgreSQL statement_completion_unknown SQLSTATE (40003).

public const string StatementCompletionUnknown = "40003"

PostgreSQL macro ERRCODE_T_R_STATEMENT_COMPLETION_UNKNOWN.

The PostgreSQL statement_too_complex SQLSTATE (54001).

public const string StatementTooComplex = "54001"

PostgreSQL macro ERRCODE_STATEMENT_TOO_COMPLEX.

The PostgreSQL string_data_length_mismatch SQLSTATE (22026).

public const string StringDataLengthMismatch = "22026"

PostgreSQL macro ERRCODE_STRING_DATA_LENGTH_MISMATCH.

The PostgreSQL string_data_right_truncation SQLSTATE (22001).

public const string StringDataRightTruncation = "22001"

PostgreSQL macro ERRCODE_STRING_DATA_RIGHT_TRUNCATION.

The PostgreSQL substring_error SQLSTATE (22011).

public const string SubstringError = "22011"

PostgreSQL macro ERRCODE_SUBSTRING_ERROR.

The PostgreSQL successful_completion SQLSTATE (00000).

public const string SuccessfulCompletion = "00000"

PostgreSQL macro ERRCODE_SUCCESSFUL_COMPLETION.

The PostgreSQL syntax_error SQLSTATE (42601).

public const string SyntaxError = "42601"

PostgreSQL macro ERRCODE_SYNTAX_ERROR.

The PostgreSQL syntax_error_or_access_rule_violation SQLSTATE (42000).

public const string SyntaxErrorOrAccessRuleViolation = "42000"

PostgreSQL macro ERRCODE_SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION.

The PostgreSQL system_error SQLSTATE (58000).

public const string SystemError = "58000"

PostgreSQL macro ERRCODE_SYSTEM_ERROR.

The PostgreSQL too_many_arguments SQLSTATE (54023).

public const string TooManyArguments = "54023"

PostgreSQL macro ERRCODE_TOO_MANY_ARGUMENTS.

The PostgreSQL too_many_columns SQLSTATE (54011).

public const string TooManyColumns = "54011"

PostgreSQL macro ERRCODE_TOO_MANY_COLUMNS.

The PostgreSQL too_many_connections SQLSTATE (53300).

public const string TooManyConnections = "53300"

PostgreSQL macro ERRCODE_TOO_MANY_CONNECTIONS.

The PostgreSQL too_many_json_array_elements SQLSTATE (2203D).

public const string TooManyJsonArrayElements = "2203D"

PostgreSQL macro ERRCODE_TOO_MANY_JSON_ARRAY_ELEMENTS.

The PostgreSQL too_many_json_object_members SQLSTATE (2203E).

public const string TooManyJsonObjectMembers = "2203E"

PostgreSQL macro ERRCODE_TOO_MANY_JSON_OBJECT_MEMBERS.

The PostgreSQL too_many_rows SQLSTATE (P0003).

public const string TooManyRows = "P0003"

PostgreSQL macro ERRCODE_TOO_MANY_ROWS.

The PostgreSQL transaction_integrity_constraint_violation SQLSTATE (40002).

public const string TransactionIntegrityConstraintViolation = "40002"

PostgreSQL macro ERRCODE_T_R_INTEGRITY_CONSTRAINT_VIOLATION.

The PostgreSQL transaction_resolution_unknown SQLSTATE (08007).

public const string TransactionResolutionUnknown = "08007"

PostgreSQL macro ERRCODE_TRANSACTION_RESOLUTION_UNKNOWN.

The PostgreSQL transaction_rollback SQLSTATE (40000).

public const string TransactionRollback = "40000"

PostgreSQL macro ERRCODE_TRANSACTION_ROLLBACK.

The PostgreSQL transaction_timeout SQLSTATE (25P04).

public const string TransactionTimeout = "25P04"

PostgreSQL macro ERRCODE_TRANSACTION_TIMEOUT. Present in the PostgreSQL 17, 18, 19 RC1 source catalogs.

The PostgreSQL triggered_action_exception SQLSTATE (09000).

public const string TriggeredActionException = "09000"

PostgreSQL macro ERRCODE_TRIGGERED_ACTION_EXCEPTION.

The PostgreSQL triggered_data_change_violation SQLSTATE (27000).

public const string TriggeredDataChangeViolation = "27000"

PostgreSQL macro ERRCODE_TRIGGERED_DATA_CHANGE_VIOLATION.

The PostgreSQL trim_error SQLSTATE (22027).

public const string TrimError = "22027"

PostgreSQL macro ERRCODE_TRIM_ERROR.

The PostgreSQL undefined_column SQLSTATE (42703).

public const string UndefinedColumn = "42703"

PostgreSQL macro ERRCODE_UNDEFINED_COLUMN.

The PostgreSQL undefined_cursor SQLSTATE (34000).

public const string UndefinedCursor = "34000"

PostgreSQL macro ERRCODE_UNDEFINED_CURSOR.

The PostgreSQL undefined_database SQLSTATE (3D000).

public const string UndefinedDatabase = "3D000"

PostgreSQL macro ERRCODE_UNDEFINED_DATABASE.

The PostgreSQL undefined_file SQLSTATE (58P01).

public const string UndefinedFile = "58P01"

PostgreSQL macro ERRCODE_UNDEFINED_FILE.

The PostgreSQL undefined_function SQLSTATE (42883).

public const string UndefinedFunction = "42883"

PostgreSQL macro ERRCODE_UNDEFINED_FUNCTION.

The PostgreSQL undefined_object SQLSTATE (42704).

public const string UndefinedObject = "42704"

PostgreSQL macro ERRCODE_UNDEFINED_OBJECT.

The PostgreSQL undefined_parameter SQLSTATE (42P02).

public const string UndefinedParameter = "42P02"

PostgreSQL macro ERRCODE_UNDEFINED_PARAMETER.

The PostgreSQL undefined_pstatement SQLSTATE (26000).

public const string UndefinedPreparedStatement = "26000"

PostgreSQL macro ERRCODE_UNDEFINED_PSTATEMENT.

The PostgreSQL undefined_schema SQLSTATE (3F000).

public const string UndefinedSchema = "3F000"

PostgreSQL macro ERRCODE_UNDEFINED_SCHEMA.

The PostgreSQL undefined_table SQLSTATE (42P01).

public const string UndefinedTable = "42P01"

PostgreSQL macro ERRCODE_UNDEFINED_TABLE.

The PostgreSQL unique_violation SQLSTATE (23505).

public const string UniqueViolation = "23505"

PostgreSQL macro ERRCODE_UNIQUE_VIOLATION.

The PostgreSQL unsafe_new_enum_value_usage SQLSTATE (55P04).

public const string UnsafeNewEnumValueUsage = "55P04"

PostgreSQL macro ERRCODE_UNSAFE_NEW_ENUM_VALUE_USAGE.

The PostgreSQL unterminated_c_string SQLSTATE (22024).

public const string UnterminatedCString = "22024"

PostgreSQL macro ERRCODE_UNTERMINATED_C_STRING.

The PostgreSQL untranslatable_character SQLSTATE (22P05).

public const string UntranslatableCharacter = "22P05"

PostgreSQL macro ERRCODE_UNTRANSLATABLE_CHARACTER.

The PostgreSQL warning SQLSTATE (01000).

public const string Warning = "01000"

PostgreSQL macro ERRCODE_WARNING.

The PostgreSQL deprecated_feature SQLSTATE (01P01).

public const string WarningDeprecatedFeature = "01P01"

PostgreSQL macro ERRCODE_WARNING_DEPRECATED_FEATURE.

The PostgreSQL dynamic_result_sets_returned SQLSTATE (0100C).

public const string WarningDynamicResultSetsReturned = "0100C"

PostgreSQL macro ERRCODE_WARNING_DYNAMIC_RESULT_SETS_RETURNED.

The PostgreSQL implicit_zero_bit_padding SQLSTATE (01008).

public const string WarningImplicitZeroBitPadding = "01008"

PostgreSQL macro ERRCODE_WARNING_IMPLICIT_ZERO_BIT_PADDING.

The PostgreSQL null_value_eliminated_in_set_function SQLSTATE (01003).

public const string WarningNullValueEliminatedInSetFunction = "01003"

PostgreSQL macro ERRCODE_WARNING_NULL_VALUE_ELIMINATED_IN_SET_FUNCTION.

The PostgreSQL privilege_not_granted SQLSTATE (01007).

public const string WarningPrivilegeNotGranted = "01007"

PostgreSQL macro ERRCODE_WARNING_PRIVILEGE_NOT_GRANTED.

The PostgreSQL privilege_not_revoked SQLSTATE (01006).

public const string WarningPrivilegeNotRevoked = "01006"

PostgreSQL macro ERRCODE_WARNING_PRIVILEGE_NOT_REVOKED.

The PostgreSQL string_data_right_truncation SQLSTATE (01004).

public const string WarningStringDataRightTruncation = "01004"

PostgreSQL macro ERRCODE_WARNING_STRING_DATA_RIGHT_TRUNCATION.

The PostgreSQL windowing_error SQLSTATE (42P20).

public const string WindowingError = "42P20"

PostgreSQL macro ERRCODE_WINDOWING_ERROR.

The PostgreSQL with_check_option_violation SQLSTATE (44000).

public const string WithCheckOptionViolation = "44000"

PostgreSQL macro ERRCODE_WITH_CHECK_OPTION_VIOLATION.

The PostgreSQL wrong_object_type SQLSTATE (42809).

public const string WrongObjectType = "42809"

PostgreSQL macro ERRCODE_WRONG_OBJECT_TYPE.

The PostgreSQL zero_length_character_string SQLSTATE (2200F).

public const string ZeroLengthCharacterString = "2200F"

PostgreSQL macro ERRCODE_ZERO_LENGTH_CHARACTER_STRING.