Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
3 lines (1 loc) · 428 Bytes

File metadata and controls

3 lines (1 loc) · 428 Bytes
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
SELECT 'ALTER INDEX '||pg_indexes.schemaname||'."'||pg_indexes.indexname||'" SET TABLESPACE '||coalesce(pg_tables.tablespace,'pg_default')||';' from pg_indexes,pg_tables where pg_indexes.schemaname=pg_tables.schemaname and pg_indexes.tablename=pg_tables.tablename and pg_tables.tablespace IS DISTINCT FROM pg_indexes.tablespace order by pg_total_relation_size(pg_indexes.schemaname||'.'||'"'||pg_indexes.indexname||'"') desc;
Morty Proxy This is a proxified and sanitized view of the page, visit original site.