We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fe304c commit 1e6c373Copy full SHA for 1e6c373
sql/i4_invalid_indexes.sql
@@ -14,6 +14,7 @@ select
14
pci.relname as index_name,
15
pn.nspname as schema_name,
16
pct.relname as table_name,
17
+ pg_size_pretty(pg_relation_size(pidx.indexrelid)) index_size,
18
format('DROP INDEX CONCURRENTLY %s; -- %s, table %s', pidx.indexrelid::regclass::text, 'Invalid index', pct.relname) as drop_code,
19
replace(
20
format('%s; -- table %s', pg_get_indexdef(pidx.indexrelid), pct.relname),
0 commit comments