Allow relkind 'I' in type_sanity test.
authorTom Lane <[email protected]>
Sat, 28 Oct 2023 01:50:44 +0000 (21:50 -0400)
committerTom Lane <[email protected]>
Sat, 28 Oct 2023 01:50:44 +0000 (21:50 -0400)
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

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

index a640cfc47694b4af676f2d92610054f979203d09..eca2c0516ff04cc437dfd6c51003872f0f020fb5 100644 (file)
@@ -500,7 +500,7 @@ ORDER BY 1;
 -- Look for illegal values in pg_class fields
 SELECT c1.oid, c1.relname
 FROM pg_class as c1
-WHERE relkind NOT IN ('r', 'i', 'S', 't', 'v', 'm', 'c', 'f', 'p') OR
+WHERE relkind NOT IN ('r', 'i', 'S', 't', 'v', 'm', 'c', 'f', 'p', 'I') OR
     relpersistence NOT IN ('p', 'u', 't') OR
     relreplident NOT IN ('d', 'n', 'f', 'i');
  oid | relname 
index 79ec410a6ca0d02c2917684a6088d684d3ece512..a546ba89de9198424f41e6d339311ecb307b87c1 100644 (file)
@@ -360,7 +360,7 @@ ORDER BY 1;
 
 SELECT c1.oid, c1.relname
 FROM pg_class as c1
-WHERE relkind NOT IN ('r', 'i', 'S', 't', 'v', 'm', 'c', 'f', 'p') OR
+WHERE relkind NOT IN ('r', 'i', 'S', 't', 'v', 'm', 'c', 'f', 'p', 'I') OR
     relpersistence NOT IN ('p', 'u', 't') OR
     relreplident NOT IN ('d', 'n', 'f', 'i');