1.win+R輸入cmd
2.cd C:\PostgreSQL\10\bin
3.還原之前首先在postgresql中新建數據庫,作為目標數據庫
4.在postgresql對目標數據庫執行create extension postgis;語句,確保空間數據加載正常,同時生成表spatial_ref_sys
5.psql -h localhost -U postgres -p 5432 -d DBtext -f "E:\DBtext .bak"
6.用戶 postgres 的口令:輸入密碼回車