File tree 5 files changed +20
-6
lines changed
5 files changed +20
-6
lines changed Original file line number Diff line number Diff line change 8
8
*
9
9
*
10
10
* IDENTIFICATION
11
- * $PostgreSQL: pgsql/src/backend/commands/typecmds.c,v 1.123 2008/08/28 23:09:45 tgl Exp $
11
+ * $PostgreSQL: pgsql/src/backend/commands/typecmds.c,v 1.124 2008/09/25 03:28:56 tgl Exp $
12
12
*
13
13
* DESCRIPTION
14
14
* The "DefineFoo" routines take the parse tree and pick out the
@@ -497,7 +497,7 @@ DefineType(List *names, List *parameters)
497
497
TYPTYPE_BASE , /* type-type (base type) */
498
498
TYPCATEGORY_ARRAY , /* type-category (array) */
499
499
false, /* array types are never preferred */
500
- DEFAULT_TYPDELIM , /* array element delimiter */
500
+ delimiter , /* array element delimiter */
501
501
F_ARRAY_IN , /* input procedure */
502
502
F_ARRAY_OUT , /* output procedure */
503
503
F_ARRAY_RECV , /* receive procedure */
Original file line number Diff line number Diff line change 37
37
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
38
38
* Portions Copyright (c) 1994, Regents of the University of California
39
39
*
40
- * $PostgreSQL: pgsql/src/include/catalog/catversion.h,v 1.488 2008/09/23 09:20:38 heikki Exp $
40
+ * $PostgreSQL: pgsql/src/include/catalog/catversion.h,v 1.489 2008/09/25 03:28:56 tgl Exp $
41
41
*
42
42
*-------------------------------------------------------------------------
43
43
*/
53
53
*/
54
54
55
55
/* yyyymmddN */
56
- #define CATALOG_VERSION_NO 200809231
56
+ #define CATALOG_VERSION_NO 200809241
57
57
58
58
#endif
Original file line number Diff line number Diff line change 8
8
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
9
9
* Portions Copyright (c) 1994, Regents of the University of California
10
10
*
11
- * $PostgreSQL: pgsql/src/include/catalog/pg_type.h,v 1.199 2008/07/30 19:35:13 tgl Exp $
11
+ * $PostgreSQL: pgsql/src/include/catalog/pg_type.h,v 1.200 2008/09/25 03:28:56 tgl Exp $
12
12
*
13
13
* NOTES
14
14
* the genbki.sh script reads this file and generates .bki
@@ -446,7 +446,7 @@ DATA(insert OID = 1016 ( _int8 PGNSP PGUID -1 f b A f t \054 0 20 0 array_in
446
446
DATA (insert OID = 1017 ( _point PGNSP PGUID - 1 f b A f t \054 0 600 0 array_in array_out array_recv array_send - - - d x f 0 - 1 0 _null_ _null_ ));
447
447
DATA (insert OID = 1018 ( _lseg PGNSP PGUID - 1 f b A f t \054 0 601 0 array_in array_out array_recv array_send - - - d x f 0 - 1 0 _null_ _null_ ));
448
448
DATA (insert OID = 1019 ( _path PGNSP PGUID - 1 f b A f t \054 0 602 0 array_in array_out array_recv array_send - - - d x f 0 - 1 0 _null_ _null_ ));
449
- DATA (insert OID = 1020 ( _box PGNSP PGUID - 1 f b A f t \054 0 603 0 array_in array_out array_recv array_send - - - d x f 0 - 1 0 _null_ _null_ ));
449
+ DATA (insert OID = 1020 ( _box PGNSP PGUID - 1 f b A f t \073 0 603 0 array_in array_out array_recv array_send - - - d x f 0 - 1 0 _null_ _null_ ));
450
450
DATA (insert OID = 1021 ( _float4 PGNSP PGUID - 1 f b A f t \054 0 700 0 array_in array_out array_recv array_send - - - i x f 0 - 1 0 _null_ _null_ ));
451
451
#define FLOAT4ARRAYOID 1021
452
452
DATA (insert OID = 1022 ( _float8 PGNSP PGUID - 1 f b A f t \054 0 701 0 array_in array_out array_recv array_send - - - d x f 0 - 1 0 _null_ _null_ ));
Original file line number Diff line number Diff line change @@ -254,6 +254,14 @@ WHERE p1.typelem = p2.oid AND NOT
254
254
-----+---------+-----+---------
255
255
(0 rows)
256
256
257
+ -- Array types should have same typdelim as their element types
258
+ SELECT p1.oid, p1.typname, p2.oid, p2.typname
259
+ FROM pg_type AS p1, pg_type AS p2
260
+ WHERE p1.typarray = p2.oid AND NOT (p1.typdelim = p2.typdelim);
261
+ oid | typname | oid | typname
262
+ -----+---------+-----+---------
263
+ (0 rows)
264
+
257
265
-- Check for bogus typanalyze routines
258
266
SELECT p1.oid, p1.typname, p2.oid, p2.proname
259
267
FROM pg_type AS p1, pg_proc AS p2
Original file line number Diff line number Diff line change @@ -196,6 +196,12 @@ FROM pg_type AS p1, pg_type AS p2
196
196
WHERE p1 .typelem = p2 .oid AND NOT
197
197
(p1 .typmodin = p2 .typmodin AND p1 .typmodout = p2 .typmodout );
198
198
199
+ -- Array types should have same typdelim as their element types
200
+
201
+ SELECT p1 .oid , p1 .typname , p2 .oid , p2 .typname
202
+ FROM pg_type AS p1, pg_type AS p2
203
+ WHERE p1 .typarray = p2 .oid AND NOT (p1 .typdelim = p2 .typdelim );
204
+
199
205
-- Check for bogus typanalyze routines
200
206
201
207
SELECT p1 .oid , p1 .typname , p2 .oid , p2 .proname
You can’t perform that action at this time.
0 commit comments