pg_dump --host 127.0.0.1 --port 5432 --username "postgres" --role "postgres" --file "D:/test.sql" --table "public.\"表名\"" "数据库名"
postgresql 导出数据库与数据表
原文:https://www.cnblogs.com/gisdataunion/p/12808805.html