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
Post a Comment