COPYING A DATABASE TO ANOTHER TABLESPACE

View: New views
2 Messages — Rating Filter:   Alert me  

COPYING A DATABASE TO ANOTHER TABLESPACE

by JORGE MALDONADO :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I created a database in the default tablespace and added the required objects like tables and indexes. Now, I noticed that I need it in a different tablespace. I know that one way to solve this issue is to create the database again and add tables and indexes.
Is it possible to get a copy of my complete database from the default tablespace to another?
 
With respect,
Jorge Maldonado

Re: COPYING A DATABASE TO ANOTHER TABLESPACE

by Tom Lane-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

"JORGE MALDONADO" <jorgemal1960@...> writes:
> I created a database in the default tablespace and added the required
> objects like tables and indexes. Now, I noticed that I need it in a
> different tablespace. I know that one way to solve this issue is to create
> the database again and add tables and indexes.
> Is it possible to get a copy of my complete database from the default
> tablespace to another?

Try CREATE DATABASE with the original DB as template.

                        regards, tom lane

--
Sent via pgsql-novice mailing list (pgsql-novice@...)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-novice
LightInTheBox - Buy quality products at wholesale price!