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

Commit2ffc0e8

Browse files
committed
Strengthen type_sanity's check on pg_type.typarray. It failed to
complain about types that didn't have typarray set. Noted whileworking on txid patch.
1 parentff1de5c commit2ffc0e8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎src/test/regress/expected/type_sanity.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ FROM pg_type as p1
6262
WHERE p1.typtype in ('b','e') AND p1.typname NOT LIKE E'\\_%' AND NOT EXISTS
6363
(SELECT 1 FROM pg_type as p2
6464
WHERE p2.typname = ('_' || p1.typname)::name AND
65-
p2.typelem = p1.oid);
65+
p2.typelem = p1.oid and p1.typarray = p2.oid);
6666
oid | typname
6767
-----+---------
6868
210 | smgr

‎src/test/regress/sql/type_sanity.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ FROM pg_type as p1
5757
WHEREp1.typtypein ('b','e')ANDp1.typname NOTLIKE E'\\_%'AND NOT EXISTS
5858
(SELECT1FROM pg_typeas p2
5959
WHEREp2.typname= ('_'||p1.typname)::nameAND
60-
p2.typelem=p1.oid);
60+
p2.typelem=p1.oidandp1.typarray=p2.oid);
6161

6262
-- Make sure typarray points to a varlena array type of our own base
6363
SELECTp1.oid,p1.typnameas basetype,p2.typnameas arraytype,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp