@@ -24,8 +24,7 @@ class AddIndexTypeToPostgresIndexesView < ActiveRecord::Migration[6.1]
...
@@ -24,8 +24,7 @@ class AddIndexTypeToPostgresIndexesView < ActiveRecord::Migration[6.1]
JOIN pg_class i ON i.oid = pg_index.indexrelid
JOIN pg_class i ON i.oid = pg_index.indexrelid
JOIN pg_namespace ON i.relnamespace = pg_namespace.oid
JOIN pg_namespace ON i.relnamespace = pg_namespace.oid
JOIN pg_indexes ON i.relname = pg_indexes.indexname
JOIN pg_indexes ON i.relname = pg_indexes.indexname
LEFT JOIN pg_class t ON t.oid = pg_index.indrelid
JOIN pg_am a ON i.relam = a.oid
LEFT JOIN pg_am a ON i.relam = a.oid
WHERE pg_namespace.nspname <> 'pg_catalog'::name AND (pg_namespace.nspname = ANY (ARRAY["current_schema"(), 'gitlab_partitions_dynamic'::name, 'gitlab_partitions_static'::name]));
WHERE pg_namespace.nspname <> 'pg_catalog'::name AND (pg_namespace.nspname = ANY (ARRAY["current_schema"(), 'gitlab_partitions_dynamic'::name, 'gitlab_partitions_static'::name]));
@@ -16597,12 +16597,11 @@ CREATE VIEW postgres_indexes AS
...
@@ -16597,12 +16597,11 @@ CREATE VIEW postgres_indexes AS
(pg_index.indpred IS NOT NULL) AS partial,
(pg_index.indpred IS NOT NULL) AS partial,
pg_indexes.indexdef AS definition,
pg_indexes.indexdef AS definition,
pg_relation_size((i.oid)::regclass) AS ondisk_size_bytes
pg_relation_size((i.oid)::regclass) AS ondisk_size_bytes
FROM (((((pg_index
FROM ((((pg_index
JOIN pg_class i ON ((i.oid = pg_index.indexrelid)))
JOIN pg_class i ON ((i.oid = pg_index.indexrelid)))
JOIN pg_namespace ON ((i.relnamespace = pg_namespace.oid)))
JOIN pg_namespace ON ((i.relnamespace = pg_namespace.oid)))
JOIN pg_indexes ON ((i.relname = pg_indexes.indexname)))
JOIN pg_indexes ON ((i.relname = pg_indexes.indexname)))
LEFT JOIN pg_class t ON ((t.oid = pg_index.indrelid)))
JOIN pg_am a ON ((i.relam = a.oid)))
LEFT JOIN pg_am a ON ((i.relam = a.oid)))
WHERE ((pg_namespace.nspname <> 'pg_catalog'::name) AND (pg_namespace.nspname = ANY (ARRAY["current_schema"(), 'gitlab_partitions_dynamic'::name, 'gitlab_partitions_static'::name])));
WHERE ((pg_namespace.nspname <> 'pg_catalog'::name) AND (pg_namespace.nspname = ANY (ARRAY["current_schema"(), 'gitlab_partitions_dynamic'::name, 'gitlab_partitions_static'::name])));