PgSync: Sync Postgres data between databases
I think pgloader does it better: <a href="https://pgloader.readthedocs.io/en/latest/ref/pgsql.html" rel="nofollow">https://pgloader.readthedocs.io/en/latest/ref/pgsql.html</a>