备份 pg_dumpall -h 127.0.0.1 -U postgres > e:\bakup\bakup1227.bakup 还原 psql -U postgres < e:\bakup\bakup1227.bakup