Dynadot — .com Transfer

question Copying data from one postgres db to another

SpaceshipSpaceship
SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
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
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Dynadot — .com TransferDynadot — .com Transfer
Truehost — .com domains from $4.99, hosting includedTruehost — .com domains from $4.99, hosting included

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com
Catchy
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back