Skip to content

Commit 4b9fbd6

Browse files
committed
Allow relkind 'I' in type_sanity test.
This is cosmetic at present, since no partitioned indexes have been created yet at the stage of the regression tests when type_sanity runs. But it's confusing that this list of allowed values doesn't match reality, so fix it. Noted by Jian He. Discussion: https://postgr.es/m/CACJufxHhr58q-YoBeqnY5P-u8Xe2X5sMtsr3LYE1nQDwdqjB4w@mail.gmail.com
1 parent 05ce730 commit 4b9fbd6

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
@@ -500,7 +500,7 @@ ORDER BY 1;
500500
-- Look for illegal values in pg_class fields
501501
SELECT c1.oid, c1.relname
502502
FROM pg_class as c1
503-
WHERE relkind NOT IN ('r', 'i', 'S', 't', 'v', 'm', 'c', 'f', 'p') OR
503+
WHERE relkind NOT IN ('r', 'i', 'S', 't', 'v', 'm', 'c', 'f', 'p', 'I') OR
504504
relpersistence NOT IN ('p', 'u', 't') OR
505505
relreplident NOT IN ('d', 'n', 'f', 'i');
506506
oid | relname

src/test/regress/sql/type_sanity.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ ORDER BY 1;
360360

361361
SELECT c1.oid, c1.relname
362362
FROM pg_class as c1
363-
WHERE relkind NOT IN ('r', 'i', 'S', 't', 'v', 'm', 'c', 'f', 'p') OR
363+
WHERE relkind NOT IN ('r', 'i', 'S', 't', 'v', 'm', 'c', 'f', 'p', 'I') OR
364364
relpersistence NOT IN ('p', 'u', 't') OR
365365
relreplident NOT IN ('d', 'n', 'f', 'i');
366366

0 commit comments

Comments
 (0)