Linux 上 pgAdmin 数据迁移实操指南

一 明确迁移范围
二 迁移 PostgreSQL 数据库内容
pg_dump -h 源主机 -U 用户名 -F c -b -v -f backup.custom 数据库名scp backup.custom 用户名@目标IP:/路径/pg_restore -h 目标主机 -U 用户名 -d 数据库名 -v backup.custom# 导出pg_dump -h 源主机 -U 用户名 -f backup.sql 数据库名# 导入psql -h 目标主机 -U 用户名 -d 数据库名 -f backup.sql三 迁移 pgAdmin 自身的配置与服务器清单
四 关键注意事项与常见问题