Safe Haskell | None |
---|---|
Language | Haskell2010 |
- Class 00 — Successful Completion
- Class 01 — Warning
- Class 02 — No Data (this is also a warning class per the SQL standard)
- Class 03 — SQL Statement Not Yet Complete
- Class 08 — Connection Exception
- Class 09 — Triggered Action Exception
- Class 0A — Feature Not Supported
- Class 0B — Invalid Transaction Initiation
- Class 0F — Locator Exception
- Class 0L — Invalid Grantor
- Class 0P — Invalid Role Specification
- Class 0Z — Diagnostics Exception
- Class 20 — Case Not Found
- Class 21 — Cardinality Violation
- Class 22 — Data Exception
- Class 23 — Integrity Constraint Violation
- Class 24 — Invalid Cursor State
- Class 25 — Invalid Transaction State
- Class 26 — Invalid SQL Statement Name
- Class 27 — Triggered Data Change Violation
- Class 28 — Invalid Authorization Specification
- Class 2B — Dependent Privilege Descriptors Still Exist
- Class 2D — Invalid Transaction Termination
- Class 2F — SQL Routine Exception
- Class 34 — Invalid Cursor Name
- Class 38 — External Routine Exception
- Class 39 — External Routine Invocation Exception
- Class 3B — Savepoint Exception
- Class 3D — Invalid Catalog Name
- Class 3F — Invalid Schema Name
- Class 40 — Transaction Rollback
- Class 42 — Syntax Error or Access Rule Violation
- Class 44 — WITH CHECK OPTION Violation
- Class 53 — Insufficient Resources
- Class 54 — Program Limit Exceeded
- Class 55 — Object Not In Prerequisite State
- Class 57 — Operator Intervention
- Class 58 — System Error (errors external to PostgreSQL itself)
- Class 72 — Snapshot Failure
- Class F0 — Configuration File Error
- Class HV — Foreign Data Wrapper Error (SQL/MED)
- Class P0 — PL/pgSQL Error
- Class XX — Internal Error
Error codes as per https://www.postgresql.org/docs/9.6/static/errcodes-appendix.html.
- type ErrorCode = ByteString
- successful_completion :: ErrorCode
- warning :: ErrorCode
- dynamic_result_sets_returned :: ErrorCode
- implicit_zero_bit_padding :: ErrorCode
- null_value_eliminated_in_set_function :: ErrorCode
- privilege_not_granted :: ErrorCode
- privilege_not_revoked :: ErrorCode
- string_data_right_truncation :: ErrorCode
- deprecated_feature :: ErrorCode
- no_data :: ErrorCode
- no_additional_dynamic_result_sets_returned :: ErrorCode
- sql_statement_not_yet_complete :: ErrorCode
- connection_exception :: ErrorCode
- connection_does_not_exist :: ErrorCode
- connection_failure :: ErrorCode
- sqlclient_unable_to_establish_sqlconnection :: ErrorCode
- sqlserver_rejected_establishment_of_sqlconnection :: ErrorCode
- transaction_resolution_unknown :: ErrorCode
- protocol_violation :: ErrorCode
- triggered_action_exception :: ErrorCode
- feature_not_supported :: ErrorCode
- invalid_transaction_initiation :: ErrorCode
- locator_exception :: ErrorCode
- invalid_locator_specification :: ErrorCode
- invalid_grantor :: ErrorCode
- invalid_grant_operation :: ErrorCode
- invalid_role_specification :: ErrorCode
- diagnostics_exception :: ErrorCode
- stacked_diagnostics_accessed_without_active_handler :: ErrorCode
- case_not_found :: ErrorCode
- cardinality_violation :: ErrorCode
- data_exception :: ErrorCode
- array_subscript_error :: ErrorCode
- character_not_in_repertoire :: ErrorCode
- datetime_field_overflow :: ErrorCode
- division_by_zero :: ErrorCode
- error_in_assignment :: ErrorCode
- escape_character_conflict :: ErrorCode
- indicator_overflow :: ErrorCode
- interval_field_overflow :: ErrorCode
- invalid_argument_for_logarithm :: ErrorCode
- invalid_argument_for_ntile_function :: ErrorCode
- invalid_argument_for_nth_value_function :: ErrorCode
- invalid_argument_for_power_function :: ErrorCode
- invalid_argument_for_width_bucket_function :: ErrorCode
- invalid_character_value_for_cast :: ErrorCode
- invalid_datetime_format :: ErrorCode
- invalid_escape_character :: ErrorCode
- invalid_escape_octet :: ErrorCode
- invalid_escape_sequence :: ErrorCode
- nonstandard_use_of_escape_character :: ErrorCode
- invalid_indicator_parameter_value :: ErrorCode
- invalid_parameter_value :: ErrorCode
- invalid_regular_expression :: ErrorCode
- invalid_row_count_in_limit_clause :: ErrorCode
- invalid_row_count_in_result_offset_clause :: ErrorCode
- invalid_tablesample_argument :: ErrorCode
- invalid_tablesample_repeat :: ErrorCode
- invalid_time_zone_displacement_value :: ErrorCode
- invalid_use_of_escape_character :: ErrorCode
- most_specific_type_mismatch :: ErrorCode
- null_value_not_allowed :: ErrorCode
- null_value_no_indicator_parameter :: ErrorCode
- numeric_value_out_of_range :: ErrorCode
- string_data_length_mismatch :: ErrorCode
- string_data_right_truncation' :: ErrorCode
- substring_error :: ErrorCode
- trim_error :: ErrorCode
- unterminated_c_string :: ErrorCode
- zero_length_character_string :: ErrorCode
- floating_point_exception :: ErrorCode
- invalid_text_representation :: ErrorCode
- invalid_binary_representation :: ErrorCode
- bad_copy_file_format :: ErrorCode
- untranslatable_character :: ErrorCode
- not_an_xml_document :: ErrorCode
- invalid_xml_document :: ErrorCode
- invalid_xml_content :: ErrorCode
- invalid_xml_comment :: ErrorCode
- invalid_xml_processing_instruction :: ErrorCode
- integrity_constraint_violation :: ErrorCode
- restrict_violation :: ErrorCode
- not_null_violation :: ErrorCode
- foreign_key_violation :: ErrorCode
- unique_violation :: ErrorCode
- check_violation :: ErrorCode
- exclusion_violation :: ErrorCode
- invalid_cursor_state :: ErrorCode
- invalid_transaction_state :: ErrorCode
- active_sql_transaction :: ErrorCode
- branch_transaction_already_active :: ErrorCode
- held_cursor_requires_same_isolation_level :: ErrorCode
- inappropriate_access_mode_for_branch_transaction :: ErrorCode
- inappropriate_isolation_level_for_branch_transaction :: ErrorCode
- no_active_sql_transaction_for_branch_transaction :: ErrorCode
- read_only_sql_transaction :: ErrorCode
- schema_and_data_statement_mixing_not_supported :: ErrorCode
- no_active_sql_transaction :: ErrorCode
- in_failed_sql_transaction :: ErrorCode
- idle_in_transaction_session_timeout :: ErrorCode
- invalid_sql_statement_name :: ErrorCode
- triggered_data_change_violation :: ErrorCode
- invalid_authorization_specification :: ErrorCode
- invalid_password :: ErrorCode
- dependent_privilege_descriptors_still_exist :: ErrorCode
- dependent_objects_still_exist :: ErrorCode
- invalid_transaction_termination :: ErrorCode
- sql_routine_exception :: ErrorCode
- function_executed_no_return_statement :: ErrorCode
- modifying_sql_data_not_permitted :: ErrorCode
- prohibited_sql_statement_attempted :: ErrorCode
- reading_sql_data_not_permitted :: ErrorCode
- invalid_cursor_name :: ErrorCode
- external_routine_exception :: ErrorCode
- containing_sql_not_permitted :: ErrorCode
- modifying_sql_data_not_permitted' :: ErrorCode
- prohibited_sql_statement_attempted' :: ErrorCode
- reading_sql_data_not_permitted' :: ErrorCode
- external_routine_invocation_exception :: ErrorCode
- invalid_sqlstate_returned :: ErrorCode
- null_value_not_allowed' :: ErrorCode
- trigger_protocol_violated :: ErrorCode
- srf_protocol_violated :: ErrorCode
- event_trigger_protocol_violated :: ErrorCode
- savepoint_exception :: ErrorCode
- invalid_savepoint_specification :: ErrorCode
- invalid_catalog_name :: ErrorCode
- invalid_schema_name :: ErrorCode
- transaction_rollback :: ErrorCode
- transaction_integrity_constraint_violation :: ErrorCode
- serialization_failure :: ErrorCode
- statement_completion_unknown :: ErrorCode
- deadlock_detected :: ErrorCode
- syntax_error_or_access_rule_violation :: ErrorCode
- syntax_error :: ErrorCode
- insufficient_privilege :: ErrorCode
- cannot_coerce :: ErrorCode
- grouping_error :: ErrorCode
- windowing_error :: ErrorCode
- invalid_recursion :: ErrorCode
- invalid_foreign_key :: ErrorCode
- invalid_name :: ErrorCode
- name_too_long :: ErrorCode
- reserved_name :: ErrorCode
- datatype_mismatch :: ErrorCode
- indeterminate_datatype :: ErrorCode
- collation_mismatch :: ErrorCode
- indeterminate_collation :: ErrorCode
- wrong_object_type :: ErrorCode
- undefined_column :: ErrorCode
- undefined_function :: ErrorCode
- undefined_table :: ErrorCode
- undefined_parameter :: ErrorCode
- undefined_object :: ErrorCode
- duplicate_column :: ErrorCode
- duplicate_cursor :: ErrorCode
- duplicate_database :: ErrorCode
- duplicate_function :: ErrorCode
- duplicate_prepared_statement :: ErrorCode
- duplicate_schema :: ErrorCode
- duplicate_table :: ErrorCode
- duplicate_alias :: ErrorCode
- duplicate_object :: ErrorCode
- ambiguous_column :: ErrorCode
- ambiguous_function :: ErrorCode
- ambiguous_parameter :: ErrorCode
- ambiguous_alias :: ErrorCode
- invalid_column_reference :: ErrorCode
- invalid_column_definition :: ErrorCode
- invalid_cursor_definition :: ErrorCode
- invalid_database_definition :: ErrorCode
- invalid_function_definition :: ErrorCode
- invalid_prepared_statement_definition :: ErrorCode
- invalid_schema_definition :: ErrorCode
- invalid_table_definition :: ErrorCode
- invalid_object_definition :: ErrorCode
- with_check_option_violation :: ErrorCode
- insufficient_resources :: ErrorCode
- disk_full :: ErrorCode
- out_of_memory :: ErrorCode
- too_many_connections :: ErrorCode
- configuration_limit_exceeded :: ErrorCode
- program_limit_exceeded :: ErrorCode
- statement_too_complex :: ErrorCode
- too_many_columns :: ErrorCode
- too_many_arguments :: ErrorCode
- object_not_in_prerequisite_state :: ErrorCode
- object_in_use :: ErrorCode
- cant_change_runtime_param :: ErrorCode
- lock_not_available :: ErrorCode
- operator_intervention :: ErrorCode
- query_canceled :: ErrorCode
- admin_shutdown :: ErrorCode
- crash_shutdown :: ErrorCode
- cannot_connect_now :: ErrorCode
- database_dropped :: ErrorCode
- system_error :: ErrorCode
- io_error :: ErrorCode
- undefined_file :: ErrorCode
- duplicate_file :: ErrorCode
- snapshot_too_old :: ErrorCode
- config_file_error :: ErrorCode
- lock_file_exists :: ErrorCode
- fdw_error :: ErrorCode
- fdw_column_name_not_found :: ErrorCode
- fdw_dynamic_parameter_value_needed :: ErrorCode
- fdw_function_sequence_error :: ErrorCode
- fdw_inconsistent_descriptor_information :: ErrorCode
- fdw_invalid_attribute_value :: ErrorCode
- fdw_invalid_column_name :: ErrorCode
- fdw_invalid_column_number :: ErrorCode
- fdw_invalid_data_type :: ErrorCode
- fdw_invalid_data_type_descriptors :: ErrorCode
- fdw_invalid_descriptor_field_identifier :: ErrorCode
- fdw_invalid_handle :: ErrorCode
- fdw_invalid_option_index :: ErrorCode
- fdw_invalid_option_name :: ErrorCode
- fdw_invalid_string_length_or_buffer_length :: ErrorCode
- fdw_invalid_string_format :: ErrorCode
- fdw_invalid_use_of_null_pointer :: ErrorCode
- fdw_too_many_handles :: ErrorCode
- fdw_out_of_memory :: ErrorCode
- fdw_no_schemas :: ErrorCode
- fdw_option_name_not_found :: ErrorCode
- fdw_reply_handle :: ErrorCode
- fdw_schema_not_found :: ErrorCode
- fdw_table_not_found :: ErrorCode
- fdw_unable_to_create_execution :: ErrorCode
- fdw_unable_to_create_reply :: ErrorCode
- fdw_unable_to_establish_connection :: ErrorCode
- plpgsql_error :: ErrorCode
- raise_exception :: ErrorCode
- no_data_found :: ErrorCode
- too_many_rows :: ErrorCode
- assert_failure :: ErrorCode
- internal_error :: ErrorCode
- data_corrupted :: ErrorCode
- index_corrupted :: ErrorCode
Documentation
type ErrorCode = ByteString Source #
Class 00 — Successful Completion
successful_completion :: ErrorCode Source #
Code "00000".
Class 01 — Warning
dynamic_result_sets_returned :: ErrorCode Source #
Code "0100C".
implicit_zero_bit_padding :: ErrorCode Source #
Code "01008".
null_value_eliminated_in_set_function :: ErrorCode Source #
Code "01003".
privilege_not_granted :: ErrorCode Source #
Code "01007".
privilege_not_revoked :: ErrorCode Source #
Code "01006".
string_data_right_truncation :: ErrorCode Source #
Code "01004".
deprecated_feature :: ErrorCode Source #
Code "01P01".
Class 02 — No Data (this is also a warning class per the SQL standard)
no_additional_dynamic_result_sets_returned :: ErrorCode Source #
Code "02001".
Class 03 — SQL Statement Not Yet Complete
sql_statement_not_yet_complete :: ErrorCode Source #
Code "03000".
Class 08 — Connection Exception
connection_exception :: ErrorCode Source #
Code "08000".
connection_does_not_exist :: ErrorCode Source #
Code "08003".
connection_failure :: ErrorCode Source #
Code "08006".
sqlclient_unable_to_establish_sqlconnection :: ErrorCode Source #
Code "08001".
sqlserver_rejected_establishment_of_sqlconnection :: ErrorCode Source #
Code "08004".
transaction_resolution_unknown :: ErrorCode Source #
Code "08007".
protocol_violation :: ErrorCode Source #
Code "08P01".
Class 09 — Triggered Action Exception
triggered_action_exception :: ErrorCode Source #
Code "09000".
Class 0A — Feature Not Supported
feature_not_supported :: ErrorCode Source #
Code "0A000".
Class 0B — Invalid Transaction Initiation
invalid_transaction_initiation :: ErrorCode Source #
Code "0B000".
Class 0F — Locator Exception
locator_exception :: ErrorCode Source #
Code "0F000".
invalid_locator_specification :: ErrorCode Source #
Code "0F001".
Class 0L — Invalid Grantor
invalid_grantor :: ErrorCode Source #
Code "0L000".
invalid_grant_operation :: ErrorCode Source #
Code "0LP01".
Class 0P — Invalid Role Specification
invalid_role_specification :: ErrorCode Source #
Code "0P000".
Class 0Z — Diagnostics Exception
diagnostics_exception :: ErrorCode Source #
Code "0Z000".
stacked_diagnostics_accessed_without_active_handler :: ErrorCode Source #
Code "0Z002".
Class 20 — Case Not Found
case_not_found :: ErrorCode Source #
Code "20000".
Class 21 — Cardinality Violation
cardinality_violation :: ErrorCode Source #
Code "21000".
Class 22 — Data Exception
data_exception :: ErrorCode Source #
Code "22000".
array_subscript_error :: ErrorCode Source #
Code "2202E".
character_not_in_repertoire :: ErrorCode Source #
Code "22021".
datetime_field_overflow :: ErrorCode Source #
Code "22008".
division_by_zero :: ErrorCode Source #
Code "22012".
error_in_assignment :: ErrorCode Source #
Code "22005".
escape_character_conflict :: ErrorCode Source #
Code "2200B".
indicator_overflow :: ErrorCode Source #
Code "22022".
interval_field_overflow :: ErrorCode Source #
Code "22015".
invalid_argument_for_logarithm :: ErrorCode Source #
Code "2201E".
invalid_argument_for_ntile_function :: ErrorCode Source #
Code "22014".
invalid_argument_for_nth_value_function :: ErrorCode Source #
Code "22016".
invalid_argument_for_power_function :: ErrorCode Source #
Code "2201F".
invalid_argument_for_width_bucket_function :: ErrorCode Source #
Code "2201G".
invalid_character_value_for_cast :: ErrorCode Source #
Code "22018".
invalid_datetime_format :: ErrorCode Source #
Code "22007".
invalid_escape_character :: ErrorCode Source #
Code "22019".
invalid_escape_octet :: ErrorCode Source #
Code "2200D".
invalid_escape_sequence :: ErrorCode Source #
Code "22025".
nonstandard_use_of_escape_character :: ErrorCode Source #
Code "22P06".
invalid_indicator_parameter_value :: ErrorCode Source #
Code "22010".
invalid_parameter_value :: ErrorCode Source #
Code "22023".
invalid_regular_expression :: ErrorCode Source #
Code "2201B".
invalid_row_count_in_limit_clause :: ErrorCode Source #
Code "2201W".
invalid_row_count_in_result_offset_clause :: ErrorCode Source #
Code "2201X".
invalid_tablesample_argument :: ErrorCode Source #
Code "2202H".
invalid_tablesample_repeat :: ErrorCode Source #
Code "2202G".
invalid_time_zone_displacement_value :: ErrorCode Source #
Code "22009".
invalid_use_of_escape_character :: ErrorCode Source #
Code "2200C".
most_specific_type_mismatch :: ErrorCode Source #
Code "2200G".
null_value_not_allowed :: ErrorCode Source #
Code "22004".
null_value_no_indicator_parameter :: ErrorCode Source #
Code "22002".
numeric_value_out_of_range :: ErrorCode Source #
Code "22003".
string_data_length_mismatch :: ErrorCode Source #
Code "22026".
string_data_right_truncation' :: ErrorCode Source #
Code "22001".
substring_error :: ErrorCode Source #
Code "22011".
trim_error :: ErrorCode Source #
Code "22027".
unterminated_c_string :: ErrorCode Source #
Code "22024".
zero_length_character_string :: ErrorCode Source #
Code "2200F".
floating_point_exception :: ErrorCode Source #
Code "22P01".
invalid_text_representation :: ErrorCode Source #
Code "22P02".
invalid_binary_representation :: ErrorCode Source #
Code "22P03".
bad_copy_file_format :: ErrorCode Source #
Code "22P04".
untranslatable_character :: ErrorCode Source #
Code "22P05".
not_an_xml_document :: ErrorCode Source #
Code "2200L".
invalid_xml_document :: ErrorCode Source #
Code "2200M".
invalid_xml_content :: ErrorCode Source #
Code "2200N".
invalid_xml_comment :: ErrorCode Source #
Code "2200S".
invalid_xml_processing_instruction :: ErrorCode Source #
Code "2200T".
Class 23 — Integrity Constraint Violation
integrity_constraint_violation :: ErrorCode Source #
Code "23000".
restrict_violation :: ErrorCode Source #
Code "23001".
not_null_violation :: ErrorCode Source #
Code "23502".
foreign_key_violation :: ErrorCode Source #
Code "23503".
unique_violation :: ErrorCode Source #
Code "23505".
check_violation :: ErrorCode Source #
Code "23514".
exclusion_violation :: ErrorCode Source #
Code "23P01".
Class 24 — Invalid Cursor State
invalid_cursor_state :: ErrorCode Source #
Code "24000".
Class 25 — Invalid Transaction State
invalid_transaction_state :: ErrorCode Source #
Code "25000".
active_sql_transaction :: ErrorCode Source #
Code "25001".
branch_transaction_already_active :: ErrorCode Source #
Code "25002".
held_cursor_requires_same_isolation_level :: ErrorCode Source #
Code "25008".
inappropriate_access_mode_for_branch_transaction :: ErrorCode Source #
Code "25003".
inappropriate_isolation_level_for_branch_transaction :: ErrorCode Source #
Code "25004".
no_active_sql_transaction_for_branch_transaction :: ErrorCode Source #
Code "25005".
read_only_sql_transaction :: ErrorCode Source #
Code "25006".
schema_and_data_statement_mixing_not_supported :: ErrorCode Source #
Code "25007".
no_active_sql_transaction :: ErrorCode Source #
Code "25P01".
in_failed_sql_transaction :: ErrorCode Source #
Code "25P02".
idle_in_transaction_session_timeout :: ErrorCode Source #
Code "25PO3".
Class 26 — Invalid SQL Statement Name
invalid_sql_statement_name :: ErrorCode Source #
Code "26000".
Class 27 — Triggered Data Change Violation
triggered_data_change_violation :: ErrorCode Source #
Code "27000".
Class 28 — Invalid Authorization Specification
invalid_authorization_specification :: ErrorCode Source #
Code "28000".
invalid_password :: ErrorCode Source #
Code "28P01".
Class 2B — Dependent Privilege Descriptors Still Exist
dependent_privilege_descriptors_still_exist :: ErrorCode Source #
Code "2B000".
dependent_objects_still_exist :: ErrorCode Source #
Code "2BP01".
Class 2D — Invalid Transaction Termination
invalid_transaction_termination :: ErrorCode Source #
Code "2D000".
Class 2F — SQL Routine Exception
sql_routine_exception :: ErrorCode Source #
Code "2F000".
function_executed_no_return_statement :: ErrorCode Source #
Code "2F005".
modifying_sql_data_not_permitted :: ErrorCode Source #
Code "2F002".
prohibited_sql_statement_attempted :: ErrorCode Source #
Code "2F003".
reading_sql_data_not_permitted :: ErrorCode Source #
Code "2F004".
Class 34 — Invalid Cursor Name
invalid_cursor_name :: ErrorCode Source #
Code "34000".
Class 38 — External Routine Exception
external_routine_exception :: ErrorCode Source #
Code "38000".
containing_sql_not_permitted :: ErrorCode Source #
Code "38001".
modifying_sql_data_not_permitted' :: ErrorCode Source #
Code "38002".
prohibited_sql_statement_attempted' :: ErrorCode Source #
Code "38003".
reading_sql_data_not_permitted' :: ErrorCode Source #
Code "38004".
Class 39 — External Routine Invocation Exception
external_routine_invocation_exception :: ErrorCode Source #
Code "39000".
invalid_sqlstate_returned :: ErrorCode Source #
Code "39001".
null_value_not_allowed' :: ErrorCode Source #
Code "39004".
trigger_protocol_violated :: ErrorCode Source #
Code "39P01".
srf_protocol_violated :: ErrorCode Source #
Code "39P02".
event_trigger_protocol_violated :: ErrorCode Source #
Code "39PO3".
Class 3B — Savepoint Exception
savepoint_exception :: ErrorCode Source #
Code "3B000".
invalid_savepoint_specification :: ErrorCode Source #
Code "3B001".
Class 3D — Invalid Catalog Name
invalid_catalog_name :: ErrorCode Source #
Code "3D000".
Class 3F — Invalid Schema Name
invalid_schema_name :: ErrorCode Source #
Code "3F000".
Class 40 — Transaction Rollback
transaction_rollback :: ErrorCode Source #
Code "40000".
transaction_integrity_constraint_violation :: ErrorCode Source #
Code "40002".
serialization_failure :: ErrorCode Source #
Code "40001".
statement_completion_unknown :: ErrorCode Source #
Code "40003".
deadlock_detected :: ErrorCode Source #
Code "40P01".
Class 42 — Syntax Error or Access Rule Violation
syntax_error_or_access_rule_violation :: ErrorCode Source #
Code "42000".
syntax_error :: ErrorCode Source #
Code "42601".
insufficient_privilege :: ErrorCode Source #
Code "42501".
cannot_coerce :: ErrorCode Source #
Code "42846".
grouping_error :: ErrorCode Source #
Code "42803".
windowing_error :: ErrorCode Source #
Code "42P20".
invalid_recursion :: ErrorCode Source #
Code "42P19".
invalid_foreign_key :: ErrorCode Source #
Code "42830".
invalid_name :: ErrorCode Source #
Code "42602".
name_too_long :: ErrorCode Source #
Code "42622".
reserved_name :: ErrorCode Source #
Code "42939".
datatype_mismatch :: ErrorCode Source #
Code "42804".
indeterminate_datatype :: ErrorCode Source #
Code "42P18".
collation_mismatch :: ErrorCode Source #
Code "42P21".
indeterminate_collation :: ErrorCode Source #
Code "42P22".
wrong_object_type :: ErrorCode Source #
Code "42809".
undefined_column :: ErrorCode Source #
Code "42703".
undefined_function :: ErrorCode Source #
Code "42883".
undefined_table :: ErrorCode Source #
Code "42P01".
undefined_parameter :: ErrorCode Source #
Code "42P02".
undefined_object :: ErrorCode Source #
Code "42704".
duplicate_column :: ErrorCode Source #
Code "42701".
duplicate_cursor :: ErrorCode Source #
Code "42P03".
duplicate_database :: ErrorCode Source #
Code "42P04".
duplicate_function :: ErrorCode Source #
Code "42723".
duplicate_prepared_statement :: ErrorCode Source #
Code "42P05".
duplicate_schema :: ErrorCode Source #
Code "42P06".
duplicate_table :: ErrorCode Source #
Code "42P07".
duplicate_alias :: ErrorCode Source #
Code "42712".
duplicate_object :: ErrorCode Source #
Code "42710".
ambiguous_column :: ErrorCode Source #
Code "42702".
ambiguous_function :: ErrorCode Source #
Code "42725".
ambiguous_parameter :: ErrorCode Source #
Code "42P08".
ambiguous_alias :: ErrorCode Source #
Code "42P09".
invalid_column_reference :: ErrorCode Source #
Code "42P10".
invalid_column_definition :: ErrorCode Source #
Code "42611".
invalid_cursor_definition :: ErrorCode Source #
Code "42P11".
invalid_database_definition :: ErrorCode Source #
Code "42P12".
invalid_function_definition :: ErrorCode Source #
Code "42P13".
invalid_prepared_statement_definition :: ErrorCode Source #
Code "42P14".
invalid_schema_definition :: ErrorCode Source #
Code "42P15".
invalid_table_definition :: ErrorCode Source #
Code "42P16".
invalid_object_definition :: ErrorCode Source #
Code "42P17".
Class 44 — WITH CHECK OPTION Violation
with_check_option_violation :: ErrorCode Source #
Code "44000".
Class 53 — Insufficient Resources
insufficient_resources :: ErrorCode Source #
Code "53000".
out_of_memory :: ErrorCode Source #
Code "53200".
too_many_connections :: ErrorCode Source #
Code "53300".
configuration_limit_exceeded :: ErrorCode Source #
Code "53400".
Class 54 — Program Limit Exceeded
program_limit_exceeded :: ErrorCode Source #
Code "54000".
statement_too_complex :: ErrorCode Source #
Code "54001".
too_many_columns :: ErrorCode Source #
Code "54011".
too_many_arguments :: ErrorCode Source #
Code "54023".
Class 55 — Object Not In Prerequisite State
object_not_in_prerequisite_state :: ErrorCode Source #
Code "55000".
object_in_use :: ErrorCode Source #
Code "55006".
cant_change_runtime_param :: ErrorCode Source #
Code "55P02".
lock_not_available :: ErrorCode Source #
Code "55P03".
Class 57 — Operator Intervention
operator_intervention :: ErrorCode Source #
Code "57000".
query_canceled :: ErrorCode Source #
Code "57014".
admin_shutdown :: ErrorCode Source #
Code "57P01".
crash_shutdown :: ErrorCode Source #
Code "57P02".
cannot_connect_now :: ErrorCode Source #
Code "57P03".
database_dropped :: ErrorCode Source #
Code "57P04".
Class 58 — System Error (errors external to PostgreSQL itself)
system_error :: ErrorCode Source #
Code "58000".
undefined_file :: ErrorCode Source #
Code "58P01".
duplicate_file :: ErrorCode Source #
Code "58P02".
Class 72 — Snapshot Failure
snapshot_too_old :: ErrorCode Source #
Code "72000".
Class F0 — Configuration File Error
config_file_error :: ErrorCode Source #
Code "F0000".
lock_file_exists :: ErrorCode Source #
Code "F0001".
Class HV — Foreign Data Wrapper Error (SQL/MED)
fdw_column_name_not_found :: ErrorCode Source #
Code "HV005".
fdw_dynamic_parameter_value_needed :: ErrorCode Source #
Code "HV002".
fdw_function_sequence_error :: ErrorCode Source #
Code "HV010".
fdw_inconsistent_descriptor_information :: ErrorCode Source #
Code "HV021".
fdw_invalid_attribute_value :: ErrorCode Source #
Code "HV024".
fdw_invalid_column_name :: ErrorCode Source #
Code "HV007".
fdw_invalid_column_number :: ErrorCode Source #
Code "HV008".
fdw_invalid_data_type :: ErrorCode Source #
Code "HV004".
fdw_invalid_data_type_descriptors :: ErrorCode Source #
Code "HV006".
fdw_invalid_descriptor_field_identifier :: ErrorCode Source #
Code "HV091".
fdw_invalid_handle :: ErrorCode Source #
Code "HV00B".
fdw_invalid_option_index :: ErrorCode Source #
Code "HV00C".
fdw_invalid_option_name :: ErrorCode Source #
Code "HV00D".
fdw_invalid_string_length_or_buffer_length :: ErrorCode Source #
Code "HV090".
fdw_invalid_string_format :: ErrorCode Source #
Code "HV00A".
fdw_invalid_use_of_null_pointer :: ErrorCode Source #
Code "HV009".
fdw_too_many_handles :: ErrorCode Source #
Code "HV014".
fdw_out_of_memory :: ErrorCode Source #
Code "HV001".
fdw_no_schemas :: ErrorCode Source #
Code "HV00P".
fdw_option_name_not_found :: ErrorCode Source #
Code "HV00J".
fdw_reply_handle :: ErrorCode Source #
Code "HV00K".
fdw_schema_not_found :: ErrorCode Source #
Code "HV00Q".
fdw_table_not_found :: ErrorCode Source #
Code "HV00R".
fdw_unable_to_create_execution :: ErrorCode Source #
Code "HV00L".
fdw_unable_to_create_reply :: ErrorCode Source #
Code "HV00M".
fdw_unable_to_establish_connection :: ErrorCode Source #
Code "HV00N".
Class P0 — PL/pgSQL Error
plpgsql_error :: ErrorCode Source #
Code "P0000".
raise_exception :: ErrorCode Source #
Code "P0001".
no_data_found :: ErrorCode Source #
Code "P0002".
too_many_rows :: ErrorCode Source #
Code "P0003".
assert_failure :: ErrorCode Source #
Code "POOO4".
Class XX — Internal Error
internal_error :: ErrorCode Source #
Code "XX000".
data_corrupted :: ErrorCode Source #
Code "XX001".
index_corrupted :: ErrorCode Source #
Code "XX002".