NameSilo

question Copying data from one postgres db to another

SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
Watch

ravikumar321

New Member
Impact
0
I want to copy data from one PG database to another, without moving the data to my local and back to the db -

pg_dump -U postgres source_db_name | psql -U postgres target_db_name

pretty certain this pipe is moving the data across the network, to my machine and back - I am wondering if there is something I can do more akin to this with a shell session:

postgres=> cp -U postgres -S source_db_name -T target_db_name

obviously the above command is ficticious

is there any such way?
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Appraise.net

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

A browser tab with a favicon next to the page title
Search members
You can now search for members by name, company, location and more. Open the search at the top of any page and choose Members. You will...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back