Skip to content

Commit 664345f

Browse files
committed
Update PostgreSQL files to most recent version
1 parent b29164d commit 664345f

File tree

3 files changed

+127
-60
lines changed

3 files changed

+127
-60
lines changed

codegen/src/errcodes.txt

+3-1
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

+13-10
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)