I have a number of tables in a database in the server side in PostgreSQL. I want to have them all in another database. Is it possible?
-
stackoverflow.com/questions/3195125/…bob– bob2013-03-13 13:42:20 +00:00Commented Mar 13, 2013 at 13:42
-
Possible duplicate of Copy a table from one database to another in PostgresBrian Tompsett - 汤莱恩– Brian Tompsett - 汤莱恩2017-07-21 19:32:25 +00:00Commented Jul 21, 2017 at 19:32
Add a comment
|
1 Answer
Use PostgreSQL pg_dump utility with -t table option to define tables that should be dumped and restore them in a another database. For more information see PostgreSQL pg_dump documentation page