两种方式:
1 命令:pg_dump --host 127.0.0.1 --port 5432 --username "postgres" --role "postgres" --file "D:/test.sql" --table "public."表名"" "数据库名"
2 使用pgadmin 工具