Skip to content

Commit 588ecc8

Browse files
committed
Update codegen to Postgres 10 beta 1
1 parent 9bb59ce commit 588ecc8

File tree

5 files changed

+315
-251
lines changed

5 files changed

+315
-251
lines changed

codegen/src/errcodes.txt

+4-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-2016, PostgreSQL Global Development Group
5+
# Copyright (c) 2003-2017, 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
@@ -188,6 +188,7 @@ Section: Class 22 - Data Exception
188188
22004 E ERRCODE_NULL_VALUE_NOT_ALLOWED null_value_not_allowed
189189
22002 E ERRCODE_NULL_VALUE_NO_INDICATOR_PARAMETER null_value_no_indicator_parameter
190190
22003 E ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE numeric_value_out_of_range
191+
2200H E ERRCODE_SEQUENCE_GENERATOR_LIMIT_EXCEEDED sequence_generator_limit_exceeded
191192
22026 E ERRCODE_STRING_DATA_LENGTH_MISMATCH string_data_length_mismatch
192193
22001 E ERRCODE_STRING_DATA_RIGHT_TRUNCATION string_data_right_truncation
193194
22011 E ERRCODE_SUBSTRING_ERROR substring_error
@@ -326,6 +327,7 @@ Section: Class 42 - Syntax Error or Access Rule Violation
326327
42P21 E ERRCODE_COLLATION_MISMATCH collation_mismatch
327328
42P22 E ERRCODE_INDETERMINATE_COLLATION indeterminate_collation
328329
42809 E ERRCODE_WRONG_OBJECT_TYPE wrong_object_type
330+
428C9 E ERRCODE_GENERATED_ALWAYS generated_always
329331

330332
# Note: for ERRCODE purposes, we divide namable objects into these categories:
331333
# databases, schemas, prepared statements, cursors, tables, columns,
@@ -398,6 +400,7 @@ Section: Class 55 - Object Not In Prerequisite State
398400
55006 E ERRCODE_OBJECT_IN_USE object_in_use
399401
55P02 E ERRCODE_CANT_CHANGE_RUNTIME_PARAM cant_change_runtime_param
400402
55P03 E ERRCODE_LOCK_NOT_AVAILABLE lock_not_available
403+
55P04 E ERRCODE_UNSAFE_NEW_ENUM_VALUE_USAGE unsafe_new_enum_value_usage
401404

402405
Section: Class 57 - Operator Intervention
403406

codegen/src/pg_range.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* along with the relation's initial contents.
66
*
77
*
8-
* Portions Copyright (c) 1996-2016, PostgreSQL Global Development Group
8+
* Portions Copyright (c) 1996-2017, PostgreSQL Global Development Group
99
* Portions Copyright (c) 1994, Regents of the University of California
1010
*
1111
* src/include/catalog/pg_range.h

codegen/src/pg_type.h

+14-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* along with the relation's initial contents.
66
*
77
*
8-
* Portions Copyright (c) 1996-2016, PostgreSQL Global Development Group
8+
* Portions Copyright (c) 1996-2017, PostgreSQL Global Development Group
99
* Portions Copyright (c) 1994, Regents of the University of California
1010
*
1111
* src/include/catalog/pg_type.h
@@ -364,6 +364,14 @@ DATA(insert OID = 194 ( pg_node_tree PGNSP PGUID -1 f b S f t \054 0 0 0 pg_node
364364
DESCR("string representing an internal node tree");
365365
#define PGNODETREEOID 194
366366

367+
DATA(insert OID = 3361 ( pg_ndistinct PGNSP PGUID -1 f b S f t \054 0 0 0 pg_ndistinct_in pg_ndistinct_out pg_ndistinct_recv pg_ndistinct_send - - - i x f 0 -1 0 100 _null_ _null_ _null_ ));
368+
DESCR("multivariate ndistinct coefficients");
369+
#define PGNDISTINCTOID 3361
370+
371+
DATA(insert OID = 3402 ( pg_dependencies PGNSP PGUID -1 f b S f t \054 0 0 0 pg_dependencies_in pg_dependencies_out pg_dependencies_recv pg_dependencies_send - - - i x f 0 -1 0 100 _null_ _null_ _null_ ));
372+
DESCR("multivariate dependencies");
373+
#define PGDEPENDENCIESOID 3402
374+
367375
DATA(insert OID = 32 ( pg_ddl_command PGNSP PGUID SIZEOF_POINTER t p P f t \054 0 0 0 pg_ddl_command_in pg_ddl_command_out pg_ddl_command_recv pg_ddl_command_send - - - ALIGNOF_POINTER p f 0 -1 0 0 _null_ _null_ _null_ ));
368376
DESCR("internal type for passing CollectedCommand");
369377
#define PGDDLCOMMANDOID 32
@@ -418,7 +426,7 @@ DESCR("relative, limited-range time interval (Unix delta time)");
418426
DATA(insert OID = 704 ( tinterval PGNSP PGUID 12 f b T f t \054 0 0 1025 tintervalin tintervalout tintervalrecv tintervalsend - - - i p f 0 -1 0 0 _null_ _null_ _null_ ));
419427
DESCR("(abstime,abstime), time interval");
420428
#define TINTERVALOID 704
421-
DATA(insert OID = 705 ( unknown PGNSP PGUID -2 f b X f t \054 0 0 0 unknownin unknownout unknownrecv unknownsend - - - c p f 0 -1 0 0 _null_ _null_ _null_ ));
429+
DATA(insert OID = 705 ( unknown PGNSP PGUID -2 f p X f t \054 0 0 0 unknownin unknownout unknownrecv unknownsend - - - c p f 0 -1 0 0 _null_ _null_ _null_ ));
422430
DESCR("");
423431
#define UNKNOWNOID 705
424432

@@ -441,6 +449,9 @@ DESCR("IP address/netmask, host address, netmask optional");
441449
DATA(insert OID = 650 ( cidr PGNSP PGUID -1 f b I f t \054 0 0 651 cidr_in cidr_out cidr_recv cidr_send - - - i m f 0 -1 0 0 _null_ _null_ _null_ ));
442450
DESCR("network IP address/netmask, network address");
443451
#define CIDROID 650
452+
DATA(insert OID = 774 ( macaddr8 PGNSP PGUID 8 f b U f t \054 0 0 775 macaddr8_in macaddr8_out macaddr8_recv macaddr8_send - - - i p f 0 -1 0 0 _null_ _null_ _null_ ));
453+
DESCR("XX:XX:XX:XX:XX:XX:XX:XX, MAC address");
454+
#define MACADDR8OID 774
444455

445456
/* OIDS 900 - 999 */
446457

@@ -482,6 +493,7 @@ DESCR("access control list");
482493
#define ACLITEMOID 1033
483494
DATA(insert OID = 1034 ( _aclitem PGNSP PGUID -1 f b A f t \054 0 1033 0 array_in array_out array_recv array_send - - array_typanalyze i x f 0 -1 0 0 _null_ _null_ _null_ ));
484495
DATA(insert OID = 1040 ( _macaddr PGNSP PGUID -1 f b A f t \054 0 829 0 array_in array_out array_recv array_send - - array_typanalyze i x f 0 -1 0 0 _null_ _null_ _null_ ));
496+
DATA(insert OID = 775 ( _macaddr8 PGNSP PGUID -1 f b A f t \054 0 774 0 array_in array_out array_recv array_send - - array_typanalyze i x f 0 -1 0 0 _null_ _null_ _null_ ));
485497
DATA(insert OID = 1041 ( _inet PGNSP PGUID -1 f b A f t \054 0 869 0 array_in array_out array_recv array_send - - array_typanalyze i x f 0 -1 0 0 _null_ _null_ _null_ ));
486498
DATA(insert OID = 651 ( _cidr PGNSP PGUID -1 f b A f t \054 0 650 0 array_in array_out array_recv array_send - - array_typanalyze i x f 0 -1 0 0 _null_ _null_ _null_ ));
487499
DATA(insert OID = 1263 ( _cstring PGNSP PGUID -1 f b A f t \054 0 2275 0 array_in array_out array_recv array_send - - array_typanalyze i x f 0 -1 0 0 _null_ _null_ _null_ ));

0 commit comments

Comments
 (0)