Skip to content

Instantly share code, notes, and snippets.

@sonalkr132
Created June 11, 2016 11:52
Show Gist options
  • Save sonalkr132/4ea7bc6f0c672cabc36950905cb8572c to your computer and use it in GitHub Desktop.
Save sonalkr132/4ea7bc6f0c672cabc36950905cb8572c to your computer and use it in GitHub Desktop.
Copt postgres table to another database
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