I'd like to completely move a database (tables, indexes, etc.) to a new tablespace. I know how to move each item individually but is there a way to move it all in one go? I'm using postgresql 9.1.
PostgreSQL – Move Database to New Tablespace
postgresql
Related Question
- Postgresql – Restore postgres data/tablespace to new tablespace (at new mount point)
- PostgreSQL – pg_dump/pg_restore with Different Version, Database Name, and Tablespace
- Postgresql – How to recover the database after losing a tablespace with indexes
- PostgreSQL – How to Move a Tablespace
- Postgresql – In PostgreSQL, can you read from an index during a ALTER INDEX … SET TABLESPACE operation
- PostgreSQL – How PostgreSQL Names Tablespace Directories
Best Answer
Excerpt from the docs: