Created
June 11, 2016 11:52
-
-
Save sonalkr132/4ea7bc6f0c672cabc36950905cb8572c to your computer and use it in GitHub Desktop.
Copt postgres table to another database
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pg_dump -U postgres -t table_name origin_db_name | psql -U postgres dest_db_name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment