File tree 3 files changed +7
-11
lines changed
3 files changed +7
-11
lines changed Original file line number Diff line number Diff line change 94
94
95
95
desc "Update list of server error codes"
96
96
task :update_error_codes do
97
- URL_ERRORCODES_TXT = "http://git.postgresql.org/gitweb/?p=postgresql.git;a=blob_plain;f=src/backend/utils/errcodes.txt;hb=refs/tags/REL_16_0 "
97
+ URL_ERRORCODES_TXT = "http://git.postgresql.org/gitweb/?p=postgresql.git;a=blob_plain;f=src/backend/utils/errcodes.txt;hb=refs/tags/REL_17_0 "
98
98
99
99
ERRORCODES_TXT = "ext/errorcodes.txt"
100
100
sh "wget #{ URL_ERRORCODES_TXT . inspect } -O #{ ERRORCODES_TXT . inspect } || curl #{ URL_ERRORCODES_TXT . inspect } -o #{ ERRORCODES_TXT . inspect } "
Original file line number Diff line number Diff line change 453
453
VALUE klass = define_error_class( "IdleInTransactionSessionTimeout", "25" );
454
454
register_error_class( "25P03", klass );
455
455
}
456
+ {
457
+ VALUE klass = define_error_class( "TransactionTimeout", "25" );
458
+ register_error_class( "25P04", klass );
459
+ }
456
460
{
457
461
VALUE klass = define_error_class( "InvalidSqlStatementName", NULL );
458
462
register_error_class( "26000", klass );
885
889
VALUE klass = define_error_class( "DuplicateFile", "58" );
886
890
register_error_class( "58P02", klass );
887
891
}
888
- {
889
- VALUE klass = define_error_class( "SnapshotTooOld", NULL );
890
- register_error_class( "72000", klass );
891
- register_error_class( "72", klass );
892
- }
893
892
{
894
893
VALUE klass = define_error_class( "ConfigFileError", NULL );
895
894
register_error_class( "F0000", klass );
Original file line number Diff line number Diff line change 2
2
# errcodes.txt
3
3
# PostgreSQL error codes
4
4
#
5
- # Copyright (c) 2003-2023 , PostgreSQL Global Development Group
5
+ # Copyright (c) 2003-2024 , PostgreSQL Global Development Group
6
6
#
7
7
# This list serves as the basis for generating source files containing error
8
8
# codes. It is kept in a common format to make sure all these source files have
@@ -252,6 +252,7 @@ Section: Class 25 - Invalid Transaction State
252
252
25P01 E ERRCODE_NO_ACTIVE_SQL_TRANSACTION no_active_sql_transaction
253
253
25P02 E ERRCODE_IN_FAILED_SQL_TRANSACTION in_failed_sql_transaction
254
254
25P03 E ERRCODE_IDLE_IN_TRANSACTION_SESSION_TIMEOUT idle_in_transaction_session_timeout
255
+ 25P04 E ERRCODE_TRANSACTION_TIMEOUT transaction_timeout
255
256
256
257
Section: Class 26 - Invalid SQL Statement Name
257
258
@@ -439,10 +440,6 @@ Section: Class 58 - System Error (errors external to PostgreSQL itself)
439
440
58P01 E ERRCODE_UNDEFINED_FILE undefined_file
440
441
58P02 E ERRCODE_DUPLICATE_FILE duplicate_file
441
442
442
- Section: Class 72 - Snapshot Failure
443
- # (class borrowed from Oracle)
444
- 72000 E ERRCODE_SNAPSHOT_TOO_OLD snapshot_too_old
445
-
446
443
Section: Class F0 - Configuration File Error
447
444
448
445
# (PostgreSQL-specific error class)
You can’t perform that action at this time.
0 commit comments