You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SELECT'ALTER INDEX '||pg_indexes.schemaname||'."'||pg_indexes.indexname||'" SET TABLESPACE '||coalesce(pg_tables.tablespace,'pg_default')||';'from pg_indexes,pg_tables wherepg_indexes.schemaname=pg_tables.schemanameandpg_indexes.tablename=pg_tables.tablenameandpg_tables.tablespace IS DISTINCT FROMpg_indexes.tablespaceorder by pg_total_relation_size(pg_indexes.schemaname||'.'||'"'||pg_indexes.indexname||'"') desc;