From 64f55bcaa6611255548f79da6ec79c2eb5990790 Mon Sep 17 00:00:00 2001 From: xiong_xjun Date: Wed, 23 Sep 2020 10:43:51 +0800 Subject: [PATCH] when query pg_indexes, global partition index should be included --- src/common/backend/catalog/system_views.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/backend/catalog/system_views.sql b/src/common/backend/catalog/system_views.sql index 394b5b631..e49de1775 100644 --- a/src/common/backend/catalog/system_views.sql +++ b/src/common/backend/catalog/system_views.sql @@ -192,7 +192,7 @@ CREATE VIEW pg_indexes AS JOIN pg_class I ON (I.oid = X.indexrelid) LEFT JOIN pg_namespace N ON (N.oid = C.relnamespace) LEFT JOIN pg_tablespace T ON (T.oid = I.reltablespace) - WHERE C.relkind IN ('r', 'm') AND I.relkind = 'i'; + WHERE C.relkind IN ('r', 'm') AND I.relkind IN ('i', 'I'); -- For global temporary table CREATE VIEW pg_gtt_relstats WITH (security_barrier) AS