postgresql 导出数据库与数据表

pg_dump –host 127.0.0.1 –port 5432 –username “postgres” –role “postgres” –file “D:/test.sql” –table “public.\”表名\“” “数据库名”