单表导出pg_dump --host 127.0.0.1 --port 5432 --username "postgres" --role "postgres" --file "D:/test.sql" --table "public.\"表名\"" "数据库名"单表导入psql -h localhost -p 5432 -U postgres -d beijing -f test.sql