Search Postgresql Archives

Re: move database from the default tablespace to a new one?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Anton Melser a écrit :
Is this possible? I have a db that has been living in the default
tablespace, and I am trying to separate out the transaction logs (and
log archiving) and the data. It seems that tablespaces are the way to
go... but the database exists and I need to separate them out. Any
pointers?

Create a tablespace and move each individual relations of this database in the new tablespace :
 * ALTER TABLE ... SET TABLESPACE ...
   http://www.postgresql.org/docs/8.3/interactive/sql-altertable.html
 * ALTER INDEX ... SET TABLESPACE ...
   http://www.postgresql.org/docs/8.3/interactive/sql-alterindex.html

Regards.


--
Guillaume.
 http://www.postgresqlfr.org
 http://dalibo.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux