postgreSQL运行sql脚本文件:psql -d dbname -U username -f (脚本所在位置).sqlpostgerSQL的pg_restore命令用法:pg_restore[选项]…[文件名]一般选项:-d,--dbname=名字连接数据库名字-f,--file=文件名输出文件... ...