Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5ebe602

Browse files
authored
Merge pull request#963 from jkosh44/idle-session-timeout
Add idle session timeout error
2 parentsf48c3b5 +0c86f93 commit5ebe602

File tree

7 files changed

+579
-339
lines changed

7 files changed

+579
-339
lines changed

‎codegen/src/errcodes.txt‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# errcodes.txt
33
# PostgreSQL error codes
44
#
5-
# Copyright (c) 2003-2020, PostgreSQL Global Development Group
5+
# Copyright (c) 2003-2022, PostgreSQL Global Development Group
66
#
77
# This list serves as the basis for generating source files containing error
88
# codes. It is kept in a common format to make sure all these source files have
@@ -222,6 +222,7 @@ Section: Class 22 - Data Exception
222222
2203D E ERRCODE_TOO_MANY_JSON_ARRAY_ELEMENTS too_many_json_array_elements
223223
2203E E ERRCODE_TOO_MANY_JSON_OBJECT_MEMBERS too_many_json_object_members
224224
2203F E ERRCODE_SQL_JSON_SCALAR_REQUIRED sql_json_scalar_required
225+
2203G E ERRCODE_SQL_JSON_ITEM_CANNOT_BE_CAST_TO_TARGET_TYPE sql_json_item_cannot_be_cast_to_target_type
225226

226227
Section: Class 23 - Integrity Constraint Violation
227228

@@ -428,6 +429,7 @@ Section: Class 57 - Operator Intervention
428429
57P02 E ERRCODE_CRASH_SHUTDOWN crash_shutdown
429430
57P03 E ERRCODE_CANNOT_CONNECT_NOW cannot_connect_now
430431
57P04 E ERRCODE_DATABASE_DROPPED database_dropped
432+
57P05 E ERRCODE_IDLE_SESSION_TIMEOUT idle_session_timeout
431433

432434
Section: Class 58 - System Error (errors external to PostgreSQL itself)
433435

‎codegen/src/pg_range.dat‎

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# pg_range.dat
44
# Initial contents of the pg_range system catalog.
55
#
6-
# Portions Copyright (c) 1996-2020, PostgreSQL Global Development Group
6+
# Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group
77
# Portions Copyright (c) 1994, Regents of the University of California
88
#
99
# src/include/catalog/pg_range.dat
@@ -12,20 +12,23 @@
1212

1313
[
1414

15-
{ rngtypid => 'int4range', rngsubtype => 'int4', rngsubopc => 'btree/int4_ops',
15+
{ rngtypid => 'int4range', rngsubtype => 'int4',
16+
rngmultitypid => 'int4multirange', rngsubopc => 'btree/int4_ops',
1617
rngcanonical => 'int4range_canonical', rngsubdiff => 'int4range_subdiff' },
1718
{ rngtypid => 'numrange', rngsubtype => 'numeric',
18-
rngsubopc => 'btree/numeric_ops',rngcanonical => '-',
19-
rngsubdiff => 'numrange_subdiff' },
19+
rngmultitypid => 'nummultirange',rngsubopc => 'btree/numeric_ops',
20+
rngcanonical => '-',rngsubdiff => 'numrange_subdiff' },
2021
{ rngtypid => 'tsrange', rngsubtype => 'timestamp',
21-
rngsubopc => 'btree/timestamp_ops',rngcanonical => '-',
22-
rngsubdiff => 'tsrange_subdiff' },
22+
rngmultitypid => 'tsmultirange',rngsubopc => 'btree/timestamp_ops',
23+
rngcanonical => '-',rngsubdiff => 'tsrange_subdiff' },
2324
{ rngtypid => 'tstzrange', rngsubtype => 'timestamptz',
24-
rngsubopc => 'btree/timestamptz_ops', rngcanonical => '-',
25-
rngsubdiff => 'tstzrange_subdiff' },
26-
{ rngtypid => 'daterange', rngsubtype => 'date', rngsubopc => 'btree/date_ops',
25+
rngmultitypid => 'tstzmultirange', rngsubopc => 'btree/timestamptz_ops',
26+
rngcanonical => '-', rngsubdiff => 'tstzrange_subdiff' },
27+
{ rngtypid => 'daterange', rngsubtype => 'date',
28+
rngmultitypid => 'datemultirange', rngsubopc => 'btree/date_ops',
2729
rngcanonical => 'daterange_canonical', rngsubdiff => 'daterange_subdiff' },
28-
{ rngtypid => 'int8range', rngsubtype => 'int8', rngsubopc => 'btree/int8_ops',
30+
{ rngtypid => 'int8range', rngsubtype => 'int8',
31+
rngmultitypid => 'int8multirange', rngsubopc => 'btree/int8_ops',
2932
rngcanonical => 'int8range_canonical', rngsubdiff => 'int8range_subdiff' },
3033

3134
]

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp