How can I migrate data from on PostgreSQL database to another PostgreSQL database? Is there any technique to migrate data with SQL scripting?
PostgreSQL Database Migration
migrationpostgresqlscripting
Related Question
- Postgresql – Migration From Oracle to PostgreSQL Encoding Errors
- Postgresql – Is it possible to migrate a postgresql database without downtime
- Postgresql – migrating from a local PostgreSQL database to Amazon Aurora
- PostgreSQL – Migrate Database from Windows to Red Hat (Linux)
- SQL Server to PostgreSQL – Data Migration Guide
Best Answer
If you migrate to a new version of PostgreSQL use pg_dump from the latest version. Anyway, this is a simple way to dump and restore :