postgresql - postgres copy tables from another database using pg_dump? -


i copy 2 tables database database b, in postgres how can using pg_dump without losing previous tables , data in database b ?

i read answers in stack overflow suggesting using pg_dump in documentation page read?

the idea behind dump method generate text file sql commands that, when fed server, recreate database in same state @ time of dump

doesn't mean delete previous data in database b?

if tell me step step solution move 2 tables in database database b without losing previous data in database b, helpful.

i found answer question :

sudo -u owner_user pg_dump -t users databasename1 | sudo -u owner_user psql databasename2 

Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

html - Unable to style the color of bullets in a list -

c# - must be a non-abstract type with a public parameterless constructor in redis -