I have 2 Postgres RDS instances:
- Postgres RDS 1
- Postgres RDS 2
I have a 10 tables available in Postgres RDS 1 which I need to migrate to Postgres RDS 2.
Can I use pg_dump
to directly transfer the tables?
pg_dump -t test_migration -h postgresrds2.cr8o9qw9mt1v.us-east-1.rds.amazonaws.com -U postgres -d postgres | psql -d myschema -h postgresrds1.cr8o9qw9mt1v.us-east-1.rds.amazonaws.com -U myadminuser
I am also aware of migrating table to S3, but I don't want to do that because it will consume a lot of time.